Class SolutionDay18.NeighborComparator
java.lang.Object
com.expedient.adventofcodejade.solutions.year2024.SolutionDay18.NeighborComparator
- All Implemented Interfaces:
Comparator<Pair<Coordinate,Integer>>
- Enclosing class:
SolutionDay18
public static class SolutionDay18.NeighborComparator
extends Object
implements Comparator<Pair<Coordinate,Integer>>
Sorts two Coordinate, Integer pairs based on the Integer value (score) in contained in each
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(Pair<Coordinate, Integer> o1, Pair<Coordinate, Integer> o2) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
NeighborComparator
public NeighborComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Pair<Coordinate,Integer>>
-