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>
,PsyNumeric
,PsyRealNumeric
- All Known Implementing Classes:
PsyBigInteger
,PsyComplex
,PsyInteger
,PsyReal
public interface PsyAdditive<T extends PsyAdditive> extends PsyObject
A representation of Ψ-additive
, a type of object that is an operand of arithmetic operation. This interface declares methods for addition, subtraction and negation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
psyAdd(T oAdditive)
Returns a Ψ-additive
representing the result of arithmetic addition of given object to this object.T
psyNeg()
Returns a Ψ-additive
representing the result of arithmetic negation of this object.T
psySub(T oAdditive)
Returns a Ψ-additive
representing 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
-
-
-
-
Method Detail
-
psyNeg
T psyNeg()
Returns a Ψ-additive
representing the result of arithmetic negation of this object.- Returns:
- a negation.
-
psyAdd
T psyAdd(T oAdditive)
Returns a Ψ-additive
representing the result of arithmetic addition of given object to this object.- Parameters:
oAdditive
- given object.- Returns:
- a sum.
-
-