T - Element typeprotected static class FlatLists.Flat4List<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, cannot be modified or re-sized. The elements may be null.
The list is created via FlatLists.of(java.util.List).
| Modifier and Type | Field and Description |
|---|---|
private T |
t0 |
private T |
t1 |
private T |
t2 |
private T |
t3 |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
append(T e)
Returns a list that consists of a this list's elements plus a given
element.
|
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() |
toListadd, add, addAll, addAll, clear, contains, containsAll, isEmpty, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subListclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, isEmpty, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subListparallelStream, removeIf, streamprivate final T t0
private final T t1
private final T t2
private final T t3
public 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>public List<T> append(T e)
FlatLists.AbstractFlatListappend in class FlatLists.AbstractFlatList<T>Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.