com.jscape.util.workflow
Class NullOperator
java.lang.Object
com.jscape.util.workflow.NullOperator
- All Implemented Interfaces:
- BinaryOperator, UnaryOperator, java.io.Serializable
public final class NullOperator
- extends java.lang.Object
- implements UnaryOperator, BinaryOperator
"Special case": null operator.
- Author:
- Alex
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
apply(java.lang.Object argument)
Applies the operator to the specified argument. |
java.lang.Object |
apply(java.lang.Object leftArgument,
java.lang.Object rightArgument)
Applies the operator to its arguments. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NullOperator
public NullOperator()
apply
public java.lang.Object apply(java.lang.Object argument)
- Description copied from interface:
UnaryOperator
- Applies the operator to the specified argument.
- Specified by:
apply
in interface UnaryOperator
- Parameters:
argument
- an operator argument
- Returns:
- an operation result
apply
public java.lang.Object apply(java.lang.Object leftArgument,
java.lang.Object rightArgument)
- Description copied from interface:
BinaryOperator
- Applies the operator to its arguments.
- Specified by:
apply
in interface BinaryOperator
- Parameters:
leftArgument
- the left argumentrightArgument
- the right argument
- Returns:
- resulting value
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2007 JSCAPE Corp. All Rights Reserved.