public class GeometryPositionEquality extends Object implements GeometryEquality
GeometryEquality that considers two Geometrys to be equal iff one of these conditions is
satisfied:
Points.Point equality is determined by the PositionEquality instance that is passed to the constructor. In
case of the default no-args constructor, ExactPositionEquality is used.
| Constructor and Description |
|---|
GeometryPositionEquality()
Constructs an instance that uses
ExactPositionEquality to determine
whether the Geometrys have the same Positionss. |
GeometryPositionEquality(PositionEquality pointEq)
Constructs an instance that uses the specified
PositionEquality to determine
whether the Geometrys have the same Positionss. |
| Modifier and Type | Method and Description |
|---|---|
<P extends Position> |
equals(Geometry<P> first,
Geometry<P> second)
Checks whether the first geometry equals
the second, for some definition of equality.
|
public GeometryPositionEquality(PositionEquality pointEq)
PositionEquality to determine
whether the Geometrys have the same Positionss.pointEq - public GeometryPositionEquality()
ExactPositionEquality to determine
whether the Geometrys have the same Positionss.public <P extends Position> boolean equals(Geometry<P> first, Geometry<P> second)
equals in interface GeometryEqualityfirst - a Geometrysecond - a second GeometryGeometrys are equal.Copyright © 2021 geolatte.org. All rights reserved.