Package org.arakhne.afc.math.geometry.d2
Class Tuple2iComparator
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.Tuple2iComparator
-
- All Implemented Interfaces:
Comparator<Tuple2D<?>>
public class Tuple2iComparator extends Object implements Comparator<Tuple2D<?>>
Comparator of Tuple2D on their integer coordinates.For comparisons on the floating-point coordinates, see
Tuple2fComparator
.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- See Also:
Tuple2fComparator
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Constructor Summary
Constructors Constructor Description Tuple2iComparator()
Construct a comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Tuple2D<?> tuple1, Tuple2D<?> tuple2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
@Pure public int compare(Tuple2D<?> tuple1, Tuple2D<?> tuple2)
- Specified by:
compare
in interfaceComparator<Tuple2D<?>>
-
-