Module coneforest.psylla
Package coneforest.psylla.core
Interface PsyMultiplicative<T extends PsyMultiplicative>
- 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>
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_TONAME, PSY_TOSTRING, PSY_TYPE -
Method Summary
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, 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
- Throws:
PsyUndefinedResultException
-
psyMul
Returns a result of arithmetic multiplication of given object by this object.- Parameters:
oMultiplicative- a given object.- Returns:
- a product.
-
psyDiv
Returns a result of arithmetic division of this object by given object.- Parameters:
oMultiplicative- a given object.- Returns:
- a fraction.
- Throws:
PsyUndefinedResultException- when the result of division is not defined.
-