Package com.google.common.geometry
Class S2PointIndex.Entry<Data>
- java.lang.Object
-
- com.google.common.geometry.S2PointIndex.Entry<Data>
-
- All Implemented Interfaces:
S2Iterator.Entry,Comparable<S2PointIndex.Entry<Data>>
- Enclosing class:
- S2PointIndex<Data>
public static class S2PointIndex.Entry<Data> extends Object implements S2Iterator.Entry, Comparable<S2PointIndex.Entry<Data>>
An S2Iterator-compatible pair of S2Point with associated client data of a given type.Equality and hashing are based on the point and data value. The natural order of this type is by the leaf cell that contains the point, which is not consistent with equals.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(S2PointIndex.Entry<Data> other)Datadata()booleanequals(Object other)inthashCode()longid()Returns the cell ID of this cell as a primitive.S2Pointpoint()StringtoString()
-
-
-
Method Detail
-
id
public long id()
Description copied from interface:S2Iterator.EntryReturns the cell ID of this cell as a primitive.- Specified by:
idin interfaceS2Iterator.Entry
-
point
public S2Point point()
-
data
public Data data()
-
compareTo
public int compareTo(S2PointIndex.Entry<Data> other)
- Specified by:
compareToin interfaceComparable<Data>
-
-