CoordinateSequenceComparatorBuilder class
Compares two {@link CoordinateSequence}s. For sequences of the same dimension, the ordering is lexicographic. Otherwise, lower dimensions are sorted before higher. The dimensions compared can be limited; if this is done ordinate dimensions above the limit will not be compared.
If different behaviour is required for comparing size, dimension, or coordinate values, any or all methods can be overridden.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
compare(
Object o1, Object o2, int dimensionLimit) → int - Compares two {@link CoordinateSequence}s for relative order.
-
compareCoordinate(
CoordinateSequence s1, CoordinateSequence s2, int i, int dimension) → int - Compares the same coordinate of two {@link CoordinateSequence}s along the given number of dimensions.
-
compareStatic(
double a, double b) → int -
Compare two
double
s, allowing for NaN values. NaN is treated as being less than any valid number. -
regular(
) → Comparator< CoordinateSequence> -
withLimit(
int dimensionLimit) → Comparator< CoordinateSequence>