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 PositionEquality
instance that is passed to the constructor. In
case of the default no-args constructor, ExactPositionEquality
is used.
Constructor and Description |
---|
GeometryPointEquality()
Constructs an instance that uses
ExactPositionEquality to determine
whether the Geometry s have the same Positions s. |
GeometryPointEquality(PositionEquality pointEq)
Constructs an instance that uses the specified
PositionEquality to determine
whether the Geometry s have the same Positions s. |
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 GeometryPointEquality(PositionEquality pointEq)
PositionEquality
to determine
whether the Geometry
s have the same Positions
s.pointEq
- public GeometryPointEquality()
ExactPositionEquality
to determine
whether the Geometry
s have the same Positions
s.public <P extends Position> boolean equals(Geometry<P> first, Geometry<P> second)
equals
in interface GeometryEquality
first
- a Geometry
second
- a second Geometry
Geometry
s are equal.Copyright © 2018 geolatte.org. All rights reserved.