Module coneforest.psylla
Package coneforest.psylla.core
Interface PsyMultiplicative<T extends PsyMultiplicative<T>>
- Type Parameters:
T- a type of the second operand at binary operation.
- All Superinterfaces:
PsyObject
- All Known Subinterfaces:
PsyArithmetic<T>,PsyIntegral,PsyNumeric,PsyRational,PsyRealNumeric
- All Known Implementing Classes:
PsyBigFraction,PsyBigInteger,PsyComplex,PsyFraction,PsyInteger,PsyReal
@Type("multiplicative")
public interface PsyMultiplicative<T extends PsyMultiplicative<T>>
extends PsyObject
The representation of
multiplicative, a type of object that is an operand of
multiplicative operation. This interface declares methods for multiplication, division.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextActionContext action of thedivoperator.static final ContextActionContext action of themuloperator.static final ContextActionContext action of thereciprocaloperator.Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPE -
Method Summary
Modifier and TypeMethodDescriptionReturns a result of arithmetic division of this object by given object.Returns a result of arithmetic multiplication of this number by given object.Returns the multiplicative inverse of this object.Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, psyType, toSyntaxString, typeName
-
Field Details
-
PSY_DIV
Context action of thedivoperator. -
PSY_MUL
Context action of themuloperator. -
PSY_RECIPROCAL
Context action of thereciprocaloperator.
-
-
Method Details
-
psyReciprocal
Returns the multiplicative inverse of this object.- Returns:
- the multiplicative inverse of this object
- Throws:
PsyUndefinedResultException- if this object is zero.
-
psyMul
Returns a result of arithmetic multiplication of this number by given object.- Parameters:
oMultiplicative- a given number.- Returns:
- a result of arithmetic multiplication of this number by given object
-
psyDiv
Returns a result of arithmetic division of this object by given object.- Parameters:
oMultiplicative- a given object.- Returns:
- a result of arithmetic division of this object by given object
- Throws:
PsyUndefinedResultException- when the result of division is not defined.
-