T - The entry type.public final class AList<T> extends LinkedList<T>
LinkedList with a convenience append(Object) method.
Primarily used for testing purposes for quickly creating populated lists.
modCount| Constructor and Description |
|---|
AList() |
| Modifier and Type | Method and Description |
|---|---|
AList<T> |
append(T t)
Adds an entry to this list.
|
AList<T> |
appendAll(T... t)
Adds multiple entries to this list.
|
AList<T> |
appendIf(boolean b,
T val)
Adds an entry to this list if the boolean flag is
|
static <T> AList<T> |
create(T... t)
Convenience method for creating a list of objects.
|
static <T> AList<T> |
of(T... t)
Convenience method for creating a list of objects.
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streampublic AList()
@SafeVarargs public static <T> AList<T> create(T... t)
t - The initial values.@SafeVarargs public static <T> AList<T> of(T... t)
Identical to create(Object...).
t - The initial values.public AList<T> append(T t)
t - The entry to add to this list.public AList<T> appendAll(T... t)
t - The entries to add to this list.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.