public class OrderedSet<T> extends Vector<T> implements Set<T>
capacityIncrement, elementCount, elementDatamodCount| Constructor and Description |
|---|
OrderedSet()
Construct an empty collection.
|
OrderedSet(Collection<T> c)
Construct an ordered set from the given collection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o)
Add the given object to the Set if it is not equal (equals()) to
an element already in the set.
|
boolean |
addAll(Collection<? extends T> c)
Add all the elements in the given set that are not already
in this ordered set.
|
add, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitclear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streampublic OrderedSet()
public OrderedSet(Collection<T> c)
public boolean add(T o)
public boolean addAll(Collection<? extends T> c)
Copyright © 2017. All rights reserved.