Class jgl.NegateInteger
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jgl.NegateInteger

java.lang.Object
   |
   +----jgl.NegateInteger

public final class NegateInteger
extends Object
implements UnaryFunction
NegateInteger is a unary function object that assumes that its operand is an instance of Integer and returns its negation.

See Also:
BinaryNot

Constructor Index

 o NegateInteger()

Method Index

 o execute(Object)
Return the negation of my operand.

Constructors

 o NegateInteger
  public NegateInteger()

Methods

 o execute
  public Object execute(Object object)
Return the negation of my operand.
Parameters:
object - The operand, which must be an instance of Integer.
Returns:
-object

All Packages  Class Hierarchy  This Package  Previous  Next  Index