Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.neoworks.util
Class TwoBlock

    java.lang.Object
      |
      +--com.neoworks.util.TwoBlock

public class TwoBlock
extends java.lang.Object

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));} }`

Version:
  $Revision: 1.4 $
Author:
  Nicko Cadell nicko@neoworks.com

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

### data

    protected java.lang.Object data

  parametarised data

Constructor Detail

### TwoBlock

    public TwoBlock()

  Default constructor

### TwoBlock

    public TwoBlock(java.lang.Object value)

  Parametrarised constructor

Parameters:
  `value` - The parameter to the object

Method Detail

### value

    public java.lang.Object value(java.lang.Object arg1,
                                  java.lang.Object arg2)

  This function should be overriden by the implementation

  Parameters:
    `arg1` - The first argument to the TwoBlock
    `arg2` - The second argument to the TwoBlock
  Returns:
    Return the result

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD