Package coneforest.psylla.core
Interface PsyAdditive<T extends PsyAdditive>
-
- Type Parameters:
T- a type of the second operand at binary operation.
- All Superinterfaces:
PsyConvertableToName,PsyConvertableToString,PsyObject
- All Known Subinterfaces:
PsyArithmetic<T>,PsyIntegral,PsyNumeric,PsyRealNumeric
- All Known Implementing Classes:
PsyBigInteger,PsyComplex,PsyInteger,PsyReal
public interface PsyAdditive<T extends PsyAdditive> extends PsyObject
A representation ofadditive, a type of object that is an operand of arithmetic operation. This interface declares methods for addition, subtraction and negation.
-
-
Field Summary
Fields Modifier and Type Field Description static PsyOperator[]OPERATORS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TpsyAdd(T oAdditive)Returns anadditiverepresenting the result of arithmetic addition of given object to this object.TpsyNeg()Returns anadditiverepresenting the result of arithmetic negation of this object.TpsySub(T oAdditive)Returns anadditiverepresenting the result of arithmetic subtraction of given object from this object.-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
-
-
-
Field Detail
-
OPERATORS
static final PsyOperator[] OPERATORS
-
-
Method Detail
-
psyNeg
T psyNeg()
Returns anadditiverepresenting the result of arithmetic negation of this object.- Returns:
- a negation.
-
psyAdd
T psyAdd(T oAdditive)
Returns anadditiverepresenting the result of arithmetic addition of given object to this object.- Parameters:
oAdditive- given object.- Returns:
- a sum.
-
-