Package ptolemy.math.test
Class TestIntegerUnaryOperation
- java.lang.Object
-
- ptolemy.math.test.TestIntegerUnaryOperation
-
- All Implemented Interfaces:
IntegerUnaryOperation
public class TestIntegerUnaryOperation extends java.lang.Object implements IntegerUnaryOperation
A operation taking one argument of type int, and producing a value of type int. This interface attempts to mimic a first-class function of a single variable.- Since:
- Ptolemy II 2.0
- Version:
- $Id$
- Author:
- Jeff Tsay
- Pt.AcceptedRating:
- Red (ctsay)
- Pt.ProposedRating:
- Red (ctsay)
-
-
Constructor Summary
Constructors Constructor Description TestIntegerUnaryOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
operate(int operand)
Operate on the operand, returning a value of the same type.
-
-
-
Method Detail
-
operate
public int operate(int operand)
Operate on the operand, returning a value of the same type.- Specified by:
operate
in interfaceIntegerUnaryOperation
- Parameters:
operand
- The operand.- Returns:
- The results of the operation.
-
-