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>,java.lang.Iterable<E>
- Direct Known Subclasses:
AbstractIndexedList,AbstractLinkedList
public abstract class AbstractList<E> extends AbstractIterable<E> implements List<E>
-
-
Constructor Summary
Constructors Constructor Description AbstractList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<E>asList()Returns an immutable view of this list as an instance ofjava.util.List.booleanequals(java.lang.Object other)inthashCode()intindexOf(E elem)Returns 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 com.github.andrewoma.dexx.collection.internal.base.AbstractIterable
forEach
-
Methods inherited from class com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable
isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.andrewoma.dexx.collection.List
append, drop, first, get, last, prepend, range, set, tail, take
-
Methods inherited from interface com.github.andrewoma.dexx.collection.Traversable
forEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet
-
-
-
-
Method Detail
-
indexOf
public int indexOf(E elem)
Description copied from interface:ListReturns the index of the first occurrence of the specified element in the list or -1 if there are no occurrences.
-
lastIndexOf
public int lastIndexOf(E elem)
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
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-