|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.neoworks.util.TwoBlock
Like the OneBlock this is a function block that takes two arguments.
A comparison function could be written as:
new TwoBlock() {
public Object value(Object fst, Object snd)
{return new Integer(((String)fst).compareTo((String)snd));}
}
| Field Summary | |
protected java.lang.Object |
data
parametarised data |
| Constructor Summary | |
TwoBlock()
Default constructor |
|
TwoBlock(java.lang.Object value)
Parametrarised constructor |
|
| Method Summary | |
java.lang.Object |
value(java.lang.Object arg1,
java.lang.Object arg2)
This function should be overriden by the implementation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Object data
| Constructor Detail |
public TwoBlock()
public TwoBlock(java.lang.Object value)
value - The parameter to the object| Method Detail |
public java.lang.Object value(java.lang.Object arg1,
java.lang.Object arg2)
arg1 - The first argument to the TwoBlockarg2 - The second argument to the TwoBlock
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||