Package org.jd.core.v1.util
Class DefaultList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.jd.core.v1.util.DefaultList<E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess,SequencedCollection<E>
- Direct Known Subclasses:
AnnotationReferences,ArrayVariableInitializer,DefaultList.EmptyList,ElementValuePairs,ElementValues,Expressions,ExpressionVisitor.Fragments,FieldDeclarators,FormalParameters,LocalVariableDeclarators,MemberDeclarations,Statements,TypeArguments,TypeDeclarations,TypeParameters,Types,TypeVisitor.Tokens
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDefaultList(int capacity) DefaultList(E[] elements) DefaultList(E element, E... elements) DefaultList(Collection<E> collection) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DefaultList<T> getFirst()getLast()booleanisList()Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Field Details
-
EMPTY_LIST
-
-
Constructor Details
-
DefaultList
public DefaultList() -
DefaultList
public DefaultList(int capacity) -
DefaultList
-
DefaultList
-
DefaultList
-
-
Method Details
-
getFirst
-
getLast
-
removeFirst
- Specified by:
removeFirstin interfaceList<E>- Specified by:
removeFirstin interfaceSequencedCollection<E>- Overrides:
removeFirstin classArrayList<E>
-
removeLast
- Specified by:
removeLastin interfaceList<E>- Specified by:
removeLastin interfaceSequencedCollection<E>- Overrides:
removeLastin classArrayList<E>
-
isList
public boolean isList() -
emptyList
-