public final class TLVariable.NullableBoolean
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
FALSE |
static int |
NULL |
static int |
TRUE |
Constructor and Description |
---|
NullableBoolean(int value) |
Modifier and Type | Method and Description |
---|---|
boolean |
convert()
Intends to convert self into a boolean.
|
java.lang.Boolean |
convertToWrappedBool()
A convenience method to get a
Boolean object, see convert() for details. |
boolean |
isNull()
Checks if the current value is null.
|
java.lang.String |
toString() |
public static final int TRUE
public static final int FALSE
public static final int NULL
public boolean convert() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- If the current value is null.convertToWrappedBool()
public boolean isNull()
public java.lang.Boolean convertToWrappedBool() throws java.lang.UnsupportedOperationException
Boolean
object, see convert()
for details.Boolean
value of this NullableBoolean, if such exists.java.lang.UnsupportedOperationException
- If the current value is null.public java.lang.String toString()
toString
in class java.lang.Object