|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
x10.lang.Boolean
public struct class Boolean
Boolean is a logical data type, with two values: 'true' and 'false'. All of the normal logical operations are defined on Boolean. There are also static methods that define conversions to and from String, as well as some Boolean constants.
Field Summary | |
---|---|
static Boolean |
TRUE
Field Type: x10.lang.Boolean{self==true} A constant holding the Boolean value 'true'. |
static Boolean |
FALSE
Field Type: x10.lang.Boolean{self==false} A constant holding the Boolean value 'false'. |
Constructor Summary | |
---|---|
Boolean()
|
Method Summary | |
---|---|
Boolean |
operator!()
A logical complement operator. |
Boolean |
operator&(Boolean x)
A logical and operator (not short-circuiting). |
Boolean |
operator|(Boolean x)
A logical or operator (not short-circuiting). |
Boolean |
operator^(Boolean x)
A logical xor operator. |
String |
toString()
Returns a String representation of this Boolean. |
static Boolean |
parseBoolean(String s)
Deprecated. use parse(String) instead |
static Boolean |
parse(String s)
Parses the String argument as a Boolean. |
Boolean |
equals(Any x)
Return true if the given entity is a Boolean, and this Boolean is equal to the given entity. |
Boolean |
equals(Boolean x)
Returns true if this Boolean is equal to the given Boolean. |
Int |
compareTo(Boolean x)
Returns a negative Int, zero, or a positive Int if this Boolean is less than, equal to, or greater than the given Boolean. |
String |
typeName()
|
Boolean |
_struct_equals(Any other)
|
Boolean |
_struct_equals(Boolean other)
|
Boolean |
x10$lang$Boolean$$x10$lang$Boolean$this()
Declaration: x10$lang$Boolean$$x10$lang$Boolean$this(): x10.lang.Boolean{self==this(:x10.lang.Boolean)}. Boolean is a logical data type, with two values: 'true' and 'false'. |
Methods inherited from interface x10.lang.Comparable |
---|
compareTo |
Methods inherited from interface x10.lang.Any |
---|
toString, typeName, equals, hashCode |
Field Detail |
---|
public static final Boolean TRUE
A constant holding the Boolean value 'true'.
public static final Boolean FALSE
A constant holding the Boolean value 'false'.
Constructor Detail |
---|
public Boolean()
Method Detail |
---|
public final Boolean operator!()
public final Boolean operator&(Boolean x)
x
- the other Boolean
public final Boolean operator|(Boolean x)
x
- the other Boolean
public final Boolean operator^(Boolean x)
x
- the other Boolean
public final String toString()
public static final Boolean parseBoolean(String s)
parse(String)
instead
public static final Boolean parse(String s)
s
- the String containing the Boolean representation to be parsed
public final Boolean equals(Any x)
x
- the given entity
public final Boolean equals(Boolean x)
x
- the given Boolean
public final Int compareTo(Boolean x)
x
- the given Boolean
public final String typeName()
public final Boolean _struct_equals(Any other)
public final Boolean _struct_equals(Boolean other)
public final Boolean x10$lang$Boolean$$x10$lang$Boolean$this()
Boolean is a logical data type, with two values: 'true' and 'false'. All of the normal logical operations are defined on Boolean. There are also static methods that define conversions to and from String, as well as some Boolean constants.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |