java.lang.Object
coneforest.psylla.core.PsyBoolean
- All Implemented Interfaces:
PsyAtomic
,PsyLogical<PsyBoolean>
,PsyObject
,PsyScalar<PsyBoolean>
,Comparable<PsyBoolean>
@Type("boolean")
public final class PsyBoolean
extends Object
implements PsyAtomic, PsyScalar<PsyBoolean>, PsyLogical<PsyBoolean>
The representation of
boolean
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PsyBoolean
Aboolean
constant, representing false.static final PsyBoolean
Aboolean
constant, representing true.Fields inherited from interface coneforest.psylla.core.PsyLogical
PSY_AND, PSY_NOT, PSY_OR, PSY_XOR
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 TypeMethodDescriptionboolean
Returns a boolean value of this object.int
compareTo
(PsyBoolean oBoolean) boolean
int
hashCode()
static PsyBoolean
of
(boolean bool) Returns aboolean
representing the given boolean value.psyAnd
(PsyBoolean oBoolean) Returns a result of boolean conjunction of this object and given object.Returns a result of equality test of this object and given object.psyNot()
Returns a result of boolean negation of this object.psyOr
(PsyBoolean oBoolean) Returns a result of boolean disjunction of this object and given object.psyXor
(PsyBoolean oBoolean) Returns a result of boolean exclusive disjunction of this object and given object.Returns the syntactic representation of this object.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
Field Details
-
FALSE
Aboolean
constant, representing false. -
TRUE
Aboolean
constant, representing true.
-
-
Method Details
-
booleanValue
public boolean booleanValue()Returns a boolean value of this object.- Returns:
- a boolean value of this object.
-
toSyntaxString
Description copied from interface:PsyObject
Returns the syntactic representation of this object.- Specified by:
toSyntaxString
in interfacePsyObject
- Returns:
- a string
false
ortrue
depending on this object value.
-
psyNot
Returns a result of boolean negation of this object.- Specified by:
psyNot
in interfacePsyLogical<PsyBoolean>
- Returns:
- a result.
-
psyOr
Returns a result of boolean disjunction of this object and given object.- Specified by:
psyOr
in interfacePsyLogical<PsyBoolean>
- Parameters:
oBoolean
- given object.- Returns:
- a result.
-
psyAnd
Returns a result of boolean conjunction of this object and given object.- Specified by:
psyAnd
in interfacePsyLogical<PsyBoolean>
- Parameters:
oBoolean
- given object.- Returns:
- a result.
-
psyXor
Returns a result of boolean exclusive disjunction of this object and given object.- Specified by:
psyXor
in interfacePsyLogical<PsyBoolean>
- Parameters:
oBoolean
- given object.- Returns:
- a result.
-
psyEq
Returns a result of equality test of this object and given object. -
compareTo
- Specified by:
compareTo
in interfaceComparable<PsyBoolean>
- Specified by:
compareTo
in interfacePsyScalar<PsyBoolean>
-
hashCode
public int hashCode() -
equals
-
of
Returns aboolean
representing the given boolean value.- Parameters:
bool
- a given value.- Returns:
- a
boolean
object.
-