|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectIntComparison
public abstract class IntComparison
An abstract base class for integer comparison functions such as <. These functions are all "curried", which means that they expect one argument (the left operand) and then produce a new function which in turn expects one argument (the right operand) before producing the final true/false result. This is necessary because we are requiring all functions to take just one argument.
Constructor Summary | |
---|---|
IntComparison()
|
Method Summary | |
---|---|
java.lang.Object |
apply(java.lang.Object arg1)
Apply this function to a specified argument value. |
abstract boolean |
compute(int i1,
int i2)
This method should be implemented in each concrete subclass. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntComparison()
Method Detail |
---|
public abstract boolean compute(int i1, int i2)
i1
- the left operandi2
- the right operand
public java.lang.Object apply(java.lang.Object arg1)
Function
apply
in interface Function
arg1
- the argument value
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |