public class DynamicSet<E> extends DynamicCollection<E> implements Set<E>
DynamicCollection
which prevents duplicates.DynamicCollection
,
Set
DynamicCollection.DynamicIterator
iterators, iteratorsLock, storage
Constructor and Description |
---|
DynamicSet() |
DynamicSet(Collection<? extends E> c) |
DynamicSet(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
boolean |
addAll(Collection<? extends E> c) |
add, clear, contains, containsAll, indexOf, isEmpty, iterator, remove, remove, size, toArray, toArray, toString
removeAll, retainAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
public DynamicSet()
public DynamicSet(Collection<? extends E> c)
public DynamicSet(int size)
public boolean add(E o)
add
in interface Collection<E>
add
in interface Set<E>
add
in class DynamicCollection<E>
public boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
addAll
in interface Set<E>
addAll
in class DynamicCollection<E>
Copyright © 2006–2015. All rights reserved.