Package com.google.common.collect
Class Lists.TwoPlusArrayList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- com.google.common.collect.Lists.TwoPlusArrayList<E>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
,java.util.RandomAccess
- Enclosing class:
- Lists
private static class Lists.TwoPlusArrayList<E> extends java.util.AbstractList<E> implements java.io.Serializable, java.util.RandomAccess
- See Also:
Lists.asList(Object, Object, Object[])
-
-
Constructor Summary
Constructors Constructor Description TwoPlusArrayList(E first, E second, E[] rest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
get(int index)
int
size()
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
first
final E first
-
second
final E second
-
rest
final E[] rest
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-