public class GeometryPointEquality 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 PointEquality instance that is passed to the constructor. In
case of the default no-args constructor, ExactCoordinatePointEquality is used.
| Constructor and Description |
|---|
GeometryPointEquality()
Constructs an instance that uses to determine
whether the
Geometrys have the same Points. |
GeometryPointEquality(PointEquality pointEq)
Constructs an instance that uses the specified
PointEquality to determine
whether the Geometrys have the same Points. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Geometry first,
Geometry second)
Checks whether the first geometry equals
the second, for some definition of equality.
|
public GeometryPointEquality(PointEquality pointEq)
PointEquality to determine
whether the Geometrys have the same Points.pointEq - public GeometryPointEquality()
Geometrys have the same Points.public boolean equals(Geometry first, Geometry second)
equals in interface GeometryEqualityfirst - a Geometrysecond - a second GeometryGeometrys are equal.Copyright © 2015 geolatte.org. All rights reserved.