public class NullableBool extends Object
A class for bool values with possibility to check whether the value was defined or not.
Constructor and Description |
---|
NullableBool()
Initializes a new instance of the @{code NullableBool} class.
|
NullableBool(boolean value)
Initializes a new instance of the
NullableBool struct with the specified boolean value. |
NullableBool(boolean value,
boolean isDefined)
Initializes a new instance of the @{code NullableBool} class with the specified boolean value.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates and returns a copy of this instance.
|
boolean |
equals(NullableBool other)
Returns a flag indicating whether this instance is equal to the specified instance of the
NullableBool
class. |
static boolean |
equals(NullableBool obj1,
NullableBool obj2)
Returns a value indicating whether specified
obj1 instance is equal to the specified obj2
instance. |
boolean |
equals(Object obj)
Returns a flag indicating whether this instance is equal to the specified object.
|
boolean |
getValue()
Gets a bool value
|
int |
hashCode()
Returns a hash code value for the instance of the
NullableBool class. |
boolean |
isDefined()
Returns true if the value was defined; otherwise, false.
|
void |
setValue(boolean value)
Sets a bool value
|
static boolean |
to_Boolean(NullableBool val)
Implicitly returns boolean value.
|
static NullableBool |
to_NullableBool(boolean val)
Implicitly converts bool value to the NullableBool instance.
|
String |
toString()
Returns a string that represents the current object.
|
public NullableBool()
public NullableBool(boolean value)
Initializes a new instance of the NullableBool
struct with the specified boolean value.
value
- the specified boolean value.public NullableBool(boolean value, boolean isDefined)
Initializes a new instance of the @{code NullableBool} class with the specified boolean value.
value
- Nullable valueisDefined
- Nullable isDefined valuepublic Object clone()
public final boolean equals(NullableBool other)
Returns a flag indicating whether this instance is equal to the specified instance of the NullableBool
class.
other
- the specified object to compare to this instance.NullableBool
class.public boolean equals(Object obj)
Returns a flag indicating whether this instance is equal to the specified object.
public static boolean equals(NullableBool obj1, NullableBool obj2)
obj1
instance is equal to the specified obj2
instance.obj1
- the first object to compare.obj2
- the second object to compare.obj1
instance is equal to the specified obj2
instance;
otherwise, false.public final boolean getValue()
Gets a bool value
public final void setValue(boolean value)
Sets a bool value
value
- a bool valuepublic int hashCode()
Returns a hash code value for the instance of the NullableBool
class.
public final boolean isDefined()
Returns true if the value was defined; otherwise, false.
public String toString()
Returns a string that represents the current object.
public static boolean to_Boolean(NullableBool val)
Implicitly returns boolean value.
val
- NullableBool instance to convert.boolean
value.public static NullableBool to_NullableBool(boolean val)
Implicitly converts bool value to the NullableBool instance.
val
- Value to convert.Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.