Package coneforest.psylla.core
Interface PsyScalar<T extends PsyScalar>
- Type Parameters:
T
- a type of the second operand at binary comparison operation.
- All Superinterfaces:
PsyConvertableToName
,PsyConvertableToString
,PsyObject
- All Known Subinterfaces:
PsyIntegral
,PsyRational
,PsyRealNumeric
,PsyTextual
- All Known Implementing Classes:
PsyBigFractional
,PsyBigInteger
,PsyBoolean
,PsyCommand
,PsyFractional
,PsyInteger
,PsyName
,PsyReal
,PsyString
A representation of
scalar
, a type bringing total ordering to
implementing Psylla type. This interface declares methods for comparison.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCompares this object against given object and returns aninteger
indicating the result of the comparison.Returns aboolean
object representing the result of “greater or equal” comparison of this object and a given object.Returns aboolean
object representing the result of “greater” comparison of this object and a given object.Returns aboolean
object representing the result of “less or equal” comparison of this object and a given object.Returns aboolean
object representing the result of “less” comparison of this object and a given object.default PsyScalar
default PsyScalar
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Field Details
-
OPERATORS
-
-
Method Details
-
psyLt
Returns aboolean
object representing the result of “less” comparison of this object and a given object.- Parameters:
oScalar
- an object with which this object is compared.- Returns:
- a Ψ boolean value indicating if this object is less than given object.
-
psyLe
Returns aboolean
object representing the result of “less or equal” comparison of this object and a given object.- Parameters:
oScalar
- an object with which this object is compared.- Returns:
- a Ψ boolean value indicating if this object is less than or equal to given object.
-
psyGt
Returns aboolean
object representing the result of “greater” comparison of this object and a given object.- Parameters:
oScalar
- an object with which this object is compared.- Returns:
- a
boolean
result of comparison.
-
psyGe
Returns aboolean
object representing the result of “greater or equal” comparison of this object and a given object.- Parameters:
oScalar
- an object with which this object is compared.- Returns:
- a
boolean
result of comparison.
-
psyCmp
Compares this object against given object and returns aninteger
indicating the result of the comparison. Returns negative value if this object is less than given one, zero if this object is equal to given one, and positive value if this object is greater than given one.- Parameters:
oScalar
- an object with which this object is compared.- Returns:
- a result of the comparison.
-
psyMin
-
psyMax
-