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

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

public class Same
extends java.lang.Object
implements Function

Implements the "equivalent" of == operator. This function takes two parameter of any type and returns a Boolean. The value returned by this function depends on the parameter types:


Constructor Summary
Same()
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object... params)
          Invocation method.
static boolean same(java.lang.Object p0, java.lang.Object p1)
          Implements same function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Same

public Same()
Method Detail

same

public static boolean same(java.lang.Object p0,
                           java.lang.Object p1)
Implements same function.

Parameters:
p0 - first parameter
p1 - second parameter
Returns:
true if p0 and p1 are the "same" objects.

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.