Class 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)
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestLongUnaryOperation

        public TestLongUnaryOperation()
    • Method Detail

      • operate

        public long operate​(long operand)
        Operate on the operand, returning a value of the same type.
        Specified by:
        operate in interface LongUnaryOperation
        Parameters:
        operand - The operand.
        Returns:
        The results of the operation.