Package com.google.common.geometry
Class S2ClosestPointQuery.QueueEntry
- java.lang.Object
-
- com.google.common.geometry.S2ClosestPointQuery.ChordComparable
-
- com.google.common.geometry.S2ClosestPointQuery.QueueEntry
-
- All Implemented Interfaces:
java.lang.Comparable<S2ClosestPointQuery.ChordComparable>
- Enclosing class:
- S2ClosestPointQuery<T>
private static class S2ClosestPointQuery.QueueEntry extends S2ClosestPointQuery.ChordComparable
A queued cell waiting to be processed by the current query, ordered by distance to any point in the cell in ascending order.
-
-
Field Summary
Fields Modifier and Type Field Description private S2CellId
id
-
Fields inherited from class com.google.common.geometry.S2ClosestPointQuery.ChordComparable
distance
-
-
Constructor Summary
Constructors Constructor Description QueueEntry(S1ChordAngle distance, S2CellId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(S2ClosestPointQuery.ChordComparable other)
boolean
equals(java.lang.Object o)
int
hashCode()
-
Methods inherited from class com.google.common.geometry.S2ClosestPointQuery.ChordComparable
distance
-
-
-
-
Field Detail
-
id
private final S2CellId id
-
-
Constructor Detail
-
QueueEntry
QueueEntry(S1ChordAngle distance, S2CellId id)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(S2ClosestPointQuery.ChordComparable other)
-
-