T - The entry type.public final class ASet<T> extends LinkedHashSet<T>
LinkedHashSet with a convenience append(Object) method.
Primarily used for testing purposes for quickly creating populated sets.
| Constructor and Description |
|---|
ASet() |
| Modifier and Type | Method and Description |
|---|---|
ASet<T> |
append(T t)
Adds an entry to this set.
|
ASet<T> |
appendAll(T... t)
Adds multiple entries to this set.
|
ASet<T> |
appendIf(boolean b,
T t)
Adds a value to this set if the boolean value is
|
static <T> ASet<T> |
create(T... t)
Convenience method for creating a list of objects.
|
static <T> ASet<T> |
of(T... t)
Convenience method for creating a list of objects.
|
spliteratoradd, clear, clone, contains, isEmpty, iterator, remove, sizeequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streampublic ASet()
@SafeVarargs public static <T> ASet<T> create(T... t)
t - The initial values.@SafeVarargs public static <T> ASet<T> of(T... t)
Identical to create(Object...).
t - The initial values.public ASet<T> append(T t)
t - The entry to add to this set.public ASet<T> appendAll(T... t)
t - The entries to add to this set.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.