Class OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayComparator
java.lang.Object
net.sf.colossus.ai.helper.OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayComparator
- All Implemented Interfaces:
Comparator<int[]>
- Direct Known Subclasses:
OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayLegionValueComparator
- Enclosing class:
OnTheFlyLegionMove.OnTheFlyLegionMoveIterator
class OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayComparator
extends Object
implements Comparator<int[]>
- Author:
- Romain Dolbeau
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) longbaseXvalue(int[] t) intcompare(int[] t1, int[] t2) (package private) int[]nextValue(int[] t) (package private) int[]nextValue(int[] t, int factor) (package private) int[]roundNextUp(int[] t, int factor) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
myIntArrayComparator
myIntArrayComparator()
-
-
Method Details
-
baseXvalue
long baseXvalue(int[] t) -
roundNextUp
int[] roundNextUp(int[] t, int factor) -
nextValue
int[] nextValue(int[] t) -
nextValue
int[] nextValue(int[] t, int factor) -
compare
public int compare(int[] t1, int[] t2) - Specified by:
comparein interfaceComparator<int[]>
-