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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
private final long id -
point
-
data
-
-
Constructor Details
-
Entry
-
-
Method Details
-
id
public long id()Description copied from interface:S2Iterator.Entry
Returns the cell ID of this cell as a primitive.- Specified by:
id
in interfaceS2Iterator.Entry
-
point
-
data
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Data>
-
toString
-