T - element typeprivate static class FlatLists.ComparableEmptyList<T> extends AbstractList<T> implements FlatLists.ComparableList<T>
Comparable interface.modCount| Modifier | Constructor and Description |
|---|---|
private |
ComparableEmptyList() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(List o) |
boolean |
equals(Object o) |
T |
get(int index) |
int |
hashCode() |
int |
size() |
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic T get(int index)
public int hashCode()
hashCode in interface Collection<T>hashCode in interface List<T>hashCode in class AbstractList<T>public boolean equals(Object o)
equals in interface Collection<T>equals in interface List<T>equals in class AbstractList<T>public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>public int compareTo(List o)
compareTo in interface Comparable<List>Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.