T - element typestatic class FlatLists.ComparableListImpl<T extends Comparable<T>> extends AbstractList<T> implements FlatLists.ComparableList<T>
Comparable
interface using lexical ordering. The elements must be comparable.| Modifier and Type | Field and Description |
|---|---|
private List<T> |
list |
modCount| Modifier | Constructor and Description |
|---|---|
protected |
ComparableListImpl(List<T> list) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static <T extends Comparable<T>> |
compare(List<T> list0,
List<T> list1) |
(package private) static <T extends Comparable<T>> |
compare(List<T> list0,
List<T> list1,
int size) |
(package private) static <T extends Comparable<T>> |
compare(T a,
T b) |
int |
compareTo(List o) |
T |
get(int index) |
int |
size() |
add, add, addAll, clear, equals, hashCode, 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, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamprivate final List<T extends Comparable<T>> list
public T get(int index)
get in interface List<T extends Comparable<T>>get in class AbstractList<T extends Comparable<T>>public int size()
size in interface Collection<T extends Comparable<T>>size in interface List<T extends Comparable<T>>size in class AbstractCollection<T extends Comparable<T>>public int compareTo(List o)
compareTo in interface Comparable<List>static <T extends Comparable<T>> int compare(List<T> list0, List<T> list1)
static <T extends Comparable<T>> int compare(List<T> list0, List<T> list1, int size)
static <T extends Comparable<T>> int compare(T a, T b)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.