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 PsyBooleanAbooleanconstant, representing false.static final PsyBooleanAbooleanconstant, representing true.Fields inherited from interface coneforest.psylla.core.PsyLogical
PSY_AND, PSY_NOT, PSY_OR, PSY_XORFields 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 TypeMethodDescriptionbooleanReturns a boolean value of this object.intcompareTo(PsyBoolean oBoolean) booleaninthashCode()static PsyBooleanof(boolean bool) Returns abooleanrepresenting 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, waitMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
Field Details
-
FALSE
Abooleanconstant, representing false. -
TRUE
Abooleanconstant, 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:PsyObjectReturns the syntactic representation of this object.- Specified by:
toSyntaxStringin interfacePsyObject- Returns:
- a string
falseortruedepending on this object value.
-
psyNot
Returns a result of boolean negation of this object.- Specified by:
psyNotin interfacePsyLogical<PsyBoolean>- Returns:
- a result.
-
psyOr
Returns a result of boolean disjunction of this object and given object.- Specified by:
psyOrin interfacePsyLogical<PsyBoolean>- Parameters:
oBoolean- given object.- Returns:
- a result.
-
psyAnd
Returns a result of boolean conjunction of this object and given object.- Specified by:
psyAndin 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:
psyXorin 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:
compareToin interfaceComparable<PsyBoolean>- Specified by:
compareToin interfacePsyScalar<PsyBoolean>
-
hashCode
public int hashCode() -
equals
-
of
Returns abooleanrepresenting the given boolean value.- Parameters:
bool- a given value.- Returns:
- a
booleanobject.
-