public interface Arithmetic
TrianaType
,
GraphType
,
Const
Modifier and Type | Method and Description |
---|---|
Arithmetic |
add(java.lang.Object obj)
Adds the argument object to the current object.
|
Arithmetic |
divide(java.lang.Object obj)
Divides the current object by the argument object.
|
boolean |
equals(java.lang.Object obj)
Tests if the argument object is equal to the current object.
|
boolean |
isCompatible(java.lang.Object obj)
Tests the argument object to determine if it makes sense to perform arithmetic operations between it and the
current object.
|
Arithmetic |
multiply(java.lang.Object obj)
Multiplies the current object by the argument object.
|
Arithmetic |
subtract(java.lang.Object obj)
Subtracts the argument object from the current object.
|
boolean isCompatible(java.lang.Object obj)
obj
- The data object to be compared with the current oneboolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The data object to be compared with the current oneArithmetic add(java.lang.Object obj) throws java.lang.ClassCastException
obj
- The new data object to be added to the current onejava.lang.ClassCastException
- if addition with the specified object is not validArithmetic subtract(java.lang.Object obj) throws java.lang.ClassCastException
obj
- The new data object to be subtracted from the current onejava.lang.ClassCastException
- if subtraction with the specified object is not validArithmetic multiply(java.lang.Object obj) throws java.lang.ClassCastException
obj
- The new data object to be multiplied into the current onejava.lang.ClassCastException
- if multiplication with the specified object is not validArithmetic divide(java.lang.Object obj) throws java.lang.ClassCastException
obj
- The new data object to be divided into the current onejava.lang.ClassCastException
- if division with the specified object is not valid