Class SolutionDay16.NeighborComparator
java.lang.Object
com.expedient.adventofcodejade.solutions.year2024.SolutionDay16.NeighborComparator
- All Implemented Interfaces:
Comparator<Triplet<Coordinate,Integer, Direction>>
- Enclosing class:
SolutionDay16
public static class SolutionDay16.NeighborComparator
extends Object
implements Comparator<Triplet<Coordinate,Integer,Direction>>
Sorts two Coordinate, Integer, Direction triplets based on the Integer value (score) in
contained in each
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethods 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
public int compare(Triplet<Coordinate, Integer, Direction> o1, Triplet<Coordinate, Integer, Direction> o2) - Specified by:
comparein interfaceComparator<Triplet<Coordinate,Integer, Direction>>
-