|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IComparator
Defines a comparator function for scores on a gameTree board.
Provides default implementations of MIN
and MAX
.
Field Summary | |
---|---|
static IComparator |
MAX
MAX comparator takes highest score. |
static IComparator |
MIN
MIN comparator takes lowest score. |
Method Summary | |
---|---|
int |
initialValue()
Defines the initial value to use when iterating over a set of scores (using the comparator). |
IComparator |
opposite()
Return opposite comparator. |
Methods inherited from interface java.util.Comparator |
---|
compare, equals |
Field Detail |
---|
static final IComparator MAX
static final IComparator MIN
Method Detail |
---|
int initialValue()
For example, for MAX the initial value is to be Integer.MIN_VALUE.
IComparator opposite()
Designed to be used with MIN and MAX.
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |