- Type Parameters:
T
- a type of the second operand at binary comparison operation.
- All Superinterfaces:
PsyObject
- All Known Subinterfaces:
PsyIntegral
,PsyRational
,PsyRealNumeric
,PsyTextual
- All Known Implementing Classes:
PsyBigFraction
,PsyBigInteger
,PsyBoolean
,PsyCommand
,PsyFraction
,PsyInteger
,PsyName
,PsyReal
,PsyString
The representation of
scalar
, a type bringing total ordering to implementing Psylla
type. This interface declares methods for comparison.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextAction
Context action of thecmp
operator.static final ContextAction
Context action of thege
operator.static final ContextAction
Context action of thegt
operator.static final ContextAction
Context action of thele
operator.static final ContextAction
Context action of thelt
operator.static final ContextAction
Context action of themax
operator.static final ContextAction
Context action of themin
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
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
-
PSY_CMP
Context action of thecmp
operator. -
PSY_GE
Context action of thege
operator. -
PSY_GT
Context action of thegt
operator. -
PSY_LE
Context action of thele
operator. -
PSY_LT
Context action of thelt
operator. -
PSY_MAX
Context action of themax
operator. -
PSY_MIN
Context action of themin
operator.
-
-
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
-