Package com.google.common.geometry
Class S2CellIndex.Labels
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Integer>
-
- com.google.common.geometry.S2CellIndex.Labels
-
- Enclosing class:
- S2CellIndex
public static class S2CellIndex.Labels extends AbstractList<Integer>
A set of labels that can be grown byS2CellIndex.getIntersectingLabels(S2CellUnion, Labels)and shrunk viaclear()ornormalize(). May contain duplicates or be unsorted unlessnormalize()is called.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description Labels()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Integerget(int index)intgetInt(int index)Asget(int)but without the overhead of boxing.voidnormalize()Sorts the labels and removes duplicates.intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, 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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<Integer>- Specified by:
clearin interfaceList<Integer>- Overrides:
clearin classAbstractList<Integer>
-
size
public int size()
- Specified by:
sizein interfaceCollection<Integer>- Specified by:
sizein interfaceList<Integer>- Specified by:
sizein classAbstractCollection<Integer>
-
get
public Integer get(int index)
-
getInt
public int getInt(int index)
Asget(int)but without the overhead of boxing.
-
normalize
public void normalize()
Sorts the labels and removes duplicates.
-
-