T - protected static class FlatLists.Flat2List<T> extends FlatLists.AbstractFlatList<T> implements FlatLists.ComparableList<T>
ArrayList or
Arrays.asList(Object[]) there is
no array, only one piece of memory allocated, therefore is very compact
and cache and CPU efficient.
The list is read-only and cannot be modified or re-sized. The elements may be null.
The list is created via FlatLists.of(T, T).
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(List o) |
boolean |
equals(Object o) |
T |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
int |
size() |
Object[] |
toArray() |
<T2> T2[] |
toArray(T2[] a) |
String |
toString() |
add, add, addAll, addAll, asArrayList, clear, contains, containsAll, isEmpty, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subListpublic int size()
public boolean equals(Object o)
public int hashCode()
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public <T2> T2[] toArray(T2[] a)
public Object[] toArray()
public int compareTo(List o)
compareTo in interface Comparable<List>Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.