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()
boolean
isList()
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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods 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:
removeFirst
in interfaceList<E>
- Specified by:
removeFirst
in interfaceSequencedCollection<E>
- Overrides:
removeFirst
in classArrayList<E>
-
removeLast
- Specified by:
removeLast
in interfaceList<E>
- Specified by:
removeLast
in interfaceSequencedCollection<E>
- Overrides:
removeLast
in classArrayList<E>
-
isList
public boolean isList() -
emptyList
-