Class ImmutableLinkedList<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.AbstractSequentialList<T>
org.parboiled.common.ImmutableLinkedList<T>
- All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanequal(ImmutableLinkedList<T> a, ImmutableLinkedList<T> b) static inthashCode(ImmutableLinkedList<?> list) head()booleanisEmpty()last()listIterator(int index) static <T> ImmutableLinkedList<T> nil()reverse()intsize()tail()Methods inherited from class AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
ImmutableLinkedList
-
-
Method Details
-
nil
-
head
-
tail
-
last
-
prepend
-
reverse
-
equal
-
hashCode
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- Specified by:
listIteratorin classAbstractSequentialList<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>- Specified by:
isEmptyin interfaceList<T>- Overrides:
isEmptyin classAbstractCollection<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-