Class AbstractList<E>
java.lang.Object
com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable<E>
com.github.andrewoma.dexx.collection.internal.base.AbstractIterable<E>
com.github.andrewoma.dexx.collection.internal.base.AbstractList<E>
- All Implemented Interfaces:
Iterable<E>, List<E>, Traversable<E>, Iterable<E>
- Direct Known Subclasses:
AbstractIndexedList, AbstractLinkedList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasList()Returns an immutable view of this list as an instance ofjava.util.List.booleaninthashCode()intReturns the index of the first occurrence of the specified element in the list or -1 if there are no occurrences.intlastIndexOf(E elem) Returns the index of the last occurrence of the specified element in the list or -1 if there are no occurrences.Methods inherited from class AbstractIterable
forEachMethods inherited from class AbstractTraversable
isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet, toStringMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface List
append, drop, first, get, last, prepend, range, set, tail, takeMethods inherited from interface Traversable
forEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet
-
Constructor Details
-
AbstractList
public AbstractList()
-
-
Method Details
-
indexOf
-
lastIndexOf
Description copied from interface:ListReturns the index of the last occurrence of the specified element in the list or -1 if there are no occurrences.- Specified by:
lastIndexOfin interfaceList<E>
-
equals
-
hashCode
-
asList
-