org.objectweb.fractal.task.core.composition.function
Class Equals

java.lang.Object
  extended by org.objectweb.fractal.task.core.composition.function.Equals
All Implemented Interfaces:
Function

public class Equals
extends java.lang.Object
implements Function

Implements a equals function. This function takes two parameter of any type and returns true if and only if params[0].equals(params[1]) returns true; returns false otherwise even if the equals method throws an exception.


Constructor Summary
Equals()
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object... params)
          Invocation method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Equals

public Equals()
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object... params)
                        throws FunctionExecutionException
Description copied from interface: Function
Invocation method.

Specified by:
invoke in interface Function
Parameters:
params - the parameter.
Returns:
the result of the function.
Throws:
FunctionExecutionException - thrown when an error occurs.


Copyright © 2007-2009 ObjectWeb Consortium. All Rights Reserved.