Package com.google.common.geometry
Class S2ShapeIndex.SimpleList<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
com.google.common.geometry.S2ShapeIndex.SimpleList<T>
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,List<T>,RandomAccess,SequencedCollection<T>
- Enclosing class:
S2ShapeIndex
private static final class S2ShapeIndex.SimpleList<T>
extends AbstractList<T>
implements RandomAccess, Serializable
A simple append-only RandomAccess List similar to (but about 10% faster than) ArrayList.
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
elements
-
size
private int size
-
-
Constructor Details
-
SimpleList
public SimpleList(int maxSize)
-
-
Method Details
-
get
-
set
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
add
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractList<T>
-