|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.task.core.composition.function.Same
public class Same
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:
Number
, returns
true
if they contains the same value.Boolean
, returns
true
if they contains the same boolean value.String
, returns
true
if the two strings are equals.true
if
params[0] == params[1]
.
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 |
---|
public Same()
Method Detail |
---|
public static boolean same(java.lang.Object p0, java.lang.Object p1)
p0
- first parameterp1
- second parameter
true
if p0 and p1 are the "same" objects.public java.lang.Object invoke(java.lang.Object... params) throws FunctionExecutionException
Function
invoke
in interface Function
params
- the parameter.
FunctionExecutionException
- thrown when an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |