Package net.sf.colossus.ai.helper
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[]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) long
baseXvalue
(int[] t) int
compare
(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 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
-
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:
compare
in interfaceComparator<int[]>
-