public class NullableBool extends com.aspose.ms.lang.Struct<NullableBool> implements com.aspose.ms.System.IEquatable<NullableBool>
A class for boolean 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
NullableBool struct. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates and returns a copy of this instance.
|
NullableBool |
Clone()
Clones @{code NullableBool} value.
|
void |
CloneTo(NullableBool that)
Clones @{code NullableBool} value into another 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 value indicating whether current value is true or false.
|
int |
hashCode()
Returns a hash code value for the instance of the
NullableBool class. |
boolean |
isDefined()
Gets a value indicating whether the value was defined; otherwise, false.
|
static boolean |
op_Equality(NullableBool a,
NullableBool b)
Returns a value indicating whether this instance is equal to a specified object.
|
static boolean |
op_Inequality(NullableBool a,
NullableBool b)
Returns a value indicating whether this instance is not equal to a specified object.
|
void |
setValue(boolean value)
Sets a value indicating whether current value is true or false.
|
static boolean |
to_Boolean(NullableBool val)
Implicitly returns a boolean value.
|
static NullableBool |
to_NullableBool(boolean val)
Implicitly converts boolean 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 NullableBool
struct.
value
- The current value.isDefined
- The value indicating whether current value is defined.public NullableBool Clone()
Clone
in class com.aspose.ms.System.ValueType<NullableBool>
public void CloneTo(NullableBool that)
CloneTo
in class com.aspose.ms.System.ValueType<NullableBool>
that
- Another instance to clone into.public 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.
equals
in interface com.aspose.ms.System.IEquatable<NullableBool>
equals
in class Object
obj
- the specified object to compare to this instance.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 value indicating whether current value is true or false.
public final void setValue(boolean value)
Sets a value indicating whether current value is true or false.
value
- a value indicating whether current value is true or false.public int hashCode()
Returns a hash code value for the instance of the NullableBool
class.
public final boolean isDefined()
Gets a value indicating whether the value was defined; otherwise, false.
public static boolean op_Equality(NullableBool a, NullableBool b)
Returns a value indicating whether this instance is equal to a specified object.
a
- The first NullableBool
.b
- The second NullableBool
.public static boolean op_Inequality(NullableBool a, NullableBool b)
Returns a value indicating whether this instance is not equal to a specified object.
a
- The first NullableBool
.b
- The second NullableBool
.public String toString()
Returns a string that represents the current object.
public static boolean to_Boolean(NullableBool val)
Implicitly returns a boolean value.
val
- The value to convert.public static NullableBool to_NullableBool(boolean val)
Implicitly converts boolean value to the NullableBool
instance.
val
- Value to convert.NullableBool
instance.