public class GeometryPointEquality extends Object implements GeometryEquality
GeometryEquality
that considers two Geometry
s to be equal iff one of these conditions is
satisfied:
Point
s.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
Geometry s have the same Point s. |
GeometryPointEquality(PointEquality pointEq)
Constructs an instance that uses the specified
PointEquality to determine
whether the Geometry s have the same Point s. |
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 Geometry
s have the same Point
s.pointEq
- public GeometryPointEquality()
Geometry
s have the same Point
s.public boolean equals(Geometry first, Geometry second)
equals
in interface GeometryEquality
first
- a Geometry
second
- a second Geometry
Geometry
s are equal.Copyright © 2015 geolatte.org. All rights reserved.