|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Numeric
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.
Field Summary | |
---|---|
static int |
EQUAL
|
static int |
LEFT_IS_BIGGER
|
static int |
NOT_EQUAL
|
static int |
RIGHT_IS_BIGGER
|
Method Summary | |
---|---|
java.lang.Object |
add(java.lang.Object obj)
Adds the value of parameter to itself |
int |
compareTo(java.lang.Object o)
Compares the object with the parameter. |
java.lang.Object |
divide(java.lang.Object obj)
Divides itself by the value of parameter |
java.lang.Object |
inverse()
Inverts itself |
java.lang.Object |
multiply(java.lang.Object o)
Multiplies itself with the value of parameter |
java.lang.Object |
negate()
Negates itself by the value of parameter |
java.lang.Object |
subtract(java.lang.Object obj)
Subtracts the value of parameter from the object |
Field Detail |
---|
static final int NOT_EQUAL
static final int LEFT_IS_BIGGER
static final int RIGHT_IS_BIGGER
static final int EQUAL
Method Detail |
---|
java.lang.Object add(java.lang.Object obj)
java.lang.Object subtract(java.lang.Object obj)
java.lang.Object multiply(java.lang.Object o)
java.lang.Object divide(java.lang.Object obj)
java.lang.Object negate()
java.lang.Object inverse()
int compareTo(java.lang.Object o)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |