org.pf.util
Class Block1

java.lang.Object
  extended by org.pf.util.Block1

public abstract class Block1
extends java.lang.Object

This is ablock closure for one argument blocks.
The best way to use it, is to define the methods value and result() when creating a new instance.
Example:
Block1 block = new Block1()
{ Vector vector = new Vector() ; public void value( Object arg ) { vector.add( ((String)arg).trim() ) } ; public Object result() { return vector ; } ; } ;

Version:
1.0
Author:
Manfred Duchrow

Constructor Summary
Block1()
           
 
Method Summary
 java.lang.Object eval(java.lang.Object arg)
           
 java.lang.Object result()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Block1

public Block1()
Method Detail

eval

public java.lang.Object eval(java.lang.Object arg)

result

public java.lang.Object result()