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 ContextAction
Context action of thediv
operator.static final ContextAction
Context action of themul
operator.static final ContextAction
Context action of thereciprocal
operator.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 thediv
operator. -
PSY_MUL
Context action of themul
operator. -
PSY_RECIPROCAL
Context action of thereciprocal
operator.
-
-
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.
-