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 @{code NullableBool} class 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 value indicating whether this instance is equal to the specified NullableBool instance.
|
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 value indicating whether this instance is equal to the specified object.
|
boolean |
getValue()
Returns a boolean value.
|
int |
hashCode()
Returns a hash code for this NullableBool.
|
boolean |
isDefined()
Returns true if the value was defined; otherwise, false.
|
void |
setValue(boolean value)
Sets a boolean 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 representation of this NullableBool.
|
public NullableBool()
public NullableBool(boolean value)
Initializes a new instance of the @{code NullableBool} class 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
- the specified boolean value.isDefined
- Nullable isDefined valuepublic Object clone()
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 boolean equals(Object obj)
public boolean equals(NullableBool other)
other
- the specified NullableBool object to compare with this instance.public boolean getValue()
Returns a boolean value.
public void setValue(boolean value)
value
- a boolean value.public int hashCode()
public boolean isDefined()
Returns true if the value was defined; otherwise, false.
public String toString()
public static boolean to_Boolean(NullableBool val)
Implicitly returns boolean value.
val
- NullableBool instance to convert.bool
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.