org.dhmp.util
Class Algorithm.UnaryFunction

java.lang.Object
  extended byorg.dhmp.util.Algorithm.UnaryFunction
Enclosing class:
Algorithm

public abstract static class Algorithm.UnaryFunction
extends java.lang.Object

Abstract fucntion for map transformation. It receives one object as argument and must return an object.


Constructor Summary
Algorithm.UnaryFunction()
           
 
Method Summary
abstract  java.lang.Object f(java.lang.Object o)
          Function to be applied during map transformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Algorithm.UnaryFunction

public Algorithm.UnaryFunction()
Method Detail

f

public abstract java.lang.Object f(java.lang.Object o)
Function to be applied during map transformation.

Parameters:
o - the original value of each node visited.
Returns:
the new value that will substitute the original one.