java.lang.Object
coneforest.psylla.core.PsyBoolean
- All Implemented Interfaces:
PsyLogical<PsyBoolean>,PsyObject,PsyScalar<PsyBoolean>,PsyValue,Comparable<PsyBoolean>
@Type("boolean")
public final class PsyBoolean
extends Object
implements PsyLogical<PsyBoolean>, PsyScalar<PsyBoolean>, PsyValue
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_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPE -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a boolean value of this object.intcompareTo(PsyBoolean oBoolean) Compares thisscalarwith the specifiedscalarfor order.booleaninthashCode()static PsyBooleanof(boolean bool) Returns abooleanrepresenting the given boolean value.psyAnd(PsyBoolean oBoolean) Returns abooleanresult of boolean conjunction of this object and given object.psyNot()Returns abooleanresult of boolean negation of this object.psyOr(PsyBoolean oBoolean) Returns abooleanresult of boolean disjunction of this object and given object.psyXor(PsyBoolean oBoolean) Returns abooleanresult of boolean exclusive disjunction of this object and given object.Returns a stringfalseortruedepending on this object value.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, 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
Returns a stringfalseortruedepending on this object value.- Specified by:
toSyntaxStringin interfacePsyObject- Returns:
- a string
falseortruedepending on this object value
-
psyNot
Returns abooleanresult of boolean negation of this object.- Specified by:
psyNotin interfacePsyLogical<PsyBoolean>- Returns:
- a
booleanresult of boolean negation of this object
-
psyOr
Returns abooleanresult of boolean disjunction of this object and given object.- Specified by:
psyOrin interfacePsyLogical<PsyBoolean>- Parameters:
oBoolean- given object.- Returns:
- a
booleanresult of boolean disjunction of this object and given object
-
psyAnd
Returns abooleanresult of boolean conjunction of this object and given object.- Specified by:
psyAndin interfacePsyLogical<PsyBoolean>- Parameters:
oBoolean- given object.- Returns:
- a
booleanresult of boolean conjunction of this object and given object
-
psyXor
Returns abooleanresult of boolean exclusive disjunction of this object and given object.- Specified by:
psyXorin interfacePsyLogical<PsyBoolean>- Parameters:
oBoolean- given object.- Returns:
- a
booleanresult of boolean exclusive disjunction of this object and given object
-
compareTo
Description copied from interface:PsyScalarCompares thisscalarwith the specifiedscalarfor order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specifiedscalar.- Specified by:
compareToin interfaceComparable<PsyBoolean>- Specified by:
compareToin interfacePsyScalar<PsyBoolean>- Parameters:
oBoolean- thescalarto be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified.
-
hashCode
public int hashCode() -
equals
-
of
Returns abooleanrepresenting the given boolean value.- Parameters:
bool- a given value.- Returns:
- a
booleanrepresenting the given boolean value
-