type
Bool
@Serializable { simple=true }
const class Bool : Obj
Bool represents a boolean condition of true or false.
constructors
| fromStr | Parse a Str into a Bool. | 
|---|
fields
| defVal | Default value is false. | 
|---|
methods
| and | Bitwise "and" of this and b. | 
|---|---|
| equals | Return if same boolean value. | 
| hash | Return 1231 for true and 1237 for false. | 
| not | Return the logical not: if true return false; if false return true. | 
| or | Bitwise "or" of this and b. | 
| toCode | Get this Bool as a Fantom code literal - returns  | 
| toLocale | Return localized strings for "true" and "false" using current locale. | 
| toStr | Return "true" or "false". | 
| xor | Bitwise "exclusive-or" of this and b. | 
Slot Details
and
defVal
const static Bool defVal
Default value is false.
equals
fromStr
hash
virtual override Int hash()
Return 1231 for true and 1237 for false.
not
 Bool not()
Return the logical not: if true return false; if false return true.
or
toCode
toLocale
 Str toLocale()
Return localized strings for "true" and "false" using current locale.
toStr
virtual override Str toStr()
Return "true" or "false".