public class Boolean
extends Object
GDK enhancements for Boolean.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Boolean |
and(Boolean right)Logical conjunction of two boolean operators. |
|
public boolean |
asBoolean()Coerce a Boolean instance to a boolean value. |
|
public Boolean |
implies(Boolean right)Logical implication of two boolean operands. |
|
public Boolean |
or(Boolean right)Logical disjunction of two boolean operators |
|
public Boolean |
toBoolean()Identity conversion which returns Boolean.TRUE for a true Boolean and Boolean.FALSE for a false Boolean. |
|
public Boolean |
xor(Boolean right)Exclusive disjunction of two boolean operators |
| Methods inherited from class | Name |
|---|---|
class Object |
addShutdownHook, any, any, asBoolean, asType, collect, collect, collect, dump, each, eachMatch, eachMatch, eachWithIndex, every, every, find, find, findAll, findAll, findIndexOf, findIndexOf, findIndexValues, findIndexValues, findLastIndexOf, findLastIndexOf, findResult, findResult, findResult, findResult, getAt, getMetaClass, getMetaPropertyValues, getProperties, grep, grep, hasProperty, identity, inject, inject, inspect, invokeMethod, is, isCase, isNotCase, iterator, metaClass, print, print, printf, printf, println, println, println, putAt, respondsTo, respondsTo, setMetaClass, sleep, sleep, split, sprintf, sprintf, stream, tap, toString, use, use, use, with, with, withCloseable, withCloseable, withMethodClosure, withStream, withStream, withTraits |
Logical conjunction of two boolean operators.
right - right operatorCoerce a Boolean instance to a boolean value.
// you can omit ".asBoolean()"
assert Boolean.TRUE.asBoolean()
assert !Boolean.FALSE.asBoolean()
Logical disjunction of two boolean operators
right - right operatorIdentity conversion which returns Boolean.TRUE for a true Boolean and Boolean.FALSE for a false Boolean.