E - the type of elements maintained by this setpublic class InsertionOrderSet<E> extends LinkedHashSet<E>
LinkedHashSet,
Serialized Form| Constructor and Description |
|---|
InsertionOrderSet()
Constructs an empty insertion-ordered InsertionOrderSet instance
with a default capacity (16) and load factor (0.75).
|
InsertionOrderSet(Collection<? extends E> c)
Constructs a new insertion order hash set with the same elements as the
specified collection.
|
InsertionOrderSet(int initialCapacity)
Constructs an empty insertion-ordered InsertionOrderSet instance
with the specified initial capacity and a default load factor (0.75).
|
InsertionOrderSet(int initialCapacity,
float loadFactor)
Constructs an empty insertion-ordered InsertionOrderMap instance
with the specified initial capacity and load factor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E o)
Adds the specified object to this set.
|
static <E> Set<E> |
setOf(E... elements)
Factory method for create an InsertionOrderSet with the given elements.
|
clear, clone, contains, isEmpty, iterator, remove, sizeequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringpublic InsertionOrderSet()
public InsertionOrderSet(Collection<? extends E> c)
c - the collection whose elements are to be placed into this set.NullPointerException - if the specified collection is null.public InsertionOrderSet(int initialCapacity)
initialCapacity - the initial capacity.IllegalArgumentException - if the initial capacity is negative.public InsertionOrderSet(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity.loadFactor - the load factor.IllegalArgumentException - if the initial capacity is negative or the load factor is
nonpositive.public boolean add(E o)
public static <E> Set<E> setOf(E... elements)
elements - The given elements.Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.