org.xshare.base.operation
Interface Closure

All Known Subinterfaces:
Functor

public interface Closure

The Closure interface represents an arbitrary operation on a given object.

Since:
0.20
Version:
$Revision: 1.2 $
Author:
Oliver Fischer

Method Summary
 void function(java.lang.Object aObj)
          Executes the implemented operation on a given element.
 

Method Detail

function

public void function(java.lang.Object aObj)
Executes the implemented operation on a given element.

The implementing classes have to ensure two things:

Parameters:
aObj - a Object representing the object on which the implemented operation should be executed.
Throws:
java.lang.ClassCastException - if the implementing class can't operate on the given object.


jKiska Base 0.2.1 Release Esche [http://jkiska.sourceforge.net]