Package ptolemy.math.test
Class TestLongUnaryOperation
- java.lang.Object
-
- ptolemy.math.test.TestLongUnaryOperation
-
- All Implemented Interfaces:
LongUnaryOperation
public class TestLongUnaryOperation extends java.lang.Object implements LongUnaryOperation
A operation taking one argument of type long, and producing a value of type long. 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 TestLongUnaryOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
operate(long operand)
Operate on the operand, returning a value of the same type.
-
-
-
Method Detail
-
operate
public long operate(long operand)
Operate on the operand, returning a value of the same type.- Specified by:
operate
in interfaceLongUnaryOperation
- Parameters:
operand
- The operand.- Returns:
- The results of the operation.
-
-