public class GeometryPointEquality extends java.lang.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.
| Modifier and Type | Field and Description |
|---|---|
private PositionSequenceEquality |
pointSeqEq |
| Constructor and Description |
|---|
GeometryPointEquality()
Constructs an instance that uses
ExactPositionEquality to determine
whether the Geometrys have the same Positionss. |
GeometryPointEquality(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.
|
private boolean |
equals(GeometryCollection first,
GeometryCollection second) |
private <P extends Position> |
equals(Polygon<P> first,
Polygon<P> second) |
private final PositionSequenceEquality pointSeqEq
public GeometryPointEquality(PositionEquality pointEq)
PositionEquality to determine
whether the Geometrys have the same Positionss.pointEq - public GeometryPointEquality()
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.private boolean equals(GeometryCollection first, GeometryCollection second)