| pnuts.lang.Numeric
Numeric | public interface Numeric (Code) | | In Pnuts, arithmetic operations for objects implements this interface causes
a call of the corresponding methods in this interface. See Pnuts Language Specification
for details.
version: 1.1 author: Toyokazu Tomatsu |
LEFT_IS_BIGGER | int LEFT_IS_BIGGER(Code) | | |
RIGHT_IS_BIGGER | int RIGHT_IS_BIGGER(Code) | | |
compareTo | int compareTo(Object o)(Code) | | Compares the object with the parameter. returns one of the followings:
NOT_EQUAL, LEFT_IS_BIGGER, RIGHT_IS_BIGGER, EQUAL
|
negate | Object negate()(Code) | | Negates itself by the value of parameter
|
subtract | Object subtract(Object obj)(Code) | | Subtracts the value of parameter from the object
|
|
|