Package com.google.common.geometry
Class S2ShapeIndex.SimpleList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.google.common.geometry.S2ShapeIndex.SimpleList<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
,java.util.RandomAccess
- Enclosing class:
- S2ShapeIndex
private static final class S2ShapeIndex.SimpleList<T> extends java.util.AbstractList<T> implements java.util.RandomAccess, java.io.Serializable
A simple append-only RandomAccess List similar to (but about 10% faster than) ArrayList.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]
elements
private static long
serialVersionUID
private int
size
-
Constructor Summary
Constructors Constructor Description SimpleList(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T item)
T
get(int index)
T
set(int index, T value)
int
size()
-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
elements
private java.lang.Object[] elements
-
size
private int size
-
-