public abstract class AbstractList<E> extends AbstractIterable<E> implements List<E>
| Constructor and Description |
|---|
AbstractList() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<E> |
asList()
Returns an immutable view of this list as an instance of
java.util.List. |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
int |
indexOf(E elem)
Returns the index of the first occurrence of the specified element in the list or -1 if there are no occurrences.
|
int |
lastIndexOf(E elem)
Returns the index of the last occurrence of the specified element in the list or -1 if there are no occurrences.
|
forEachisEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, drop, first, get, last, prepend, range, set, tail, takeforEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSetpublic int indexOf(E elem)
Listpublic int lastIndexOf(E elem)
ListlastIndexOf in interface List<E>public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object