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
-
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 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 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
-
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.
-