com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class NullableBool



  • public class NullableBool
    extends Object

    A class for bool values with possibility to check whether the value was defined or not.

    • Constructor Detail

      • NullableBool

        public NullableBool()
        Initializes a new instance of the @{code NullableBool} class.
      • NullableBool

        public NullableBool(boolean value)

        Initializes a new instance of the NullableBool struct with the specified boolean value.

        Parameters:
        value - the specified boolean value.
      • NullableBool

        public NullableBool(boolean value,
                            boolean isDefined)

        Initializes a new instance of the @{code NullableBool} class with the specified boolean value.

        Parameters:
        value - Nullable value
        isDefined - Nullable isDefined value
    • Method Detail

      • clone

        public Object clone()
        Creates and returns a copy of this instance.
        Overrides:
        clone in class Object
        Returns:
        returns a copy of this object.
      • equals

        public final boolean equals(NullableBool other)

        Returns a flag indicating whether this instance is equal to the specified instance of the NullableBool class.

        Parameters:
        other - the specified object to compare to this instance.
        Returns:
        a flag indicating whether this instance is equal to the specified instance of the NullableBool class.
      • equals

        public boolean equals(Object obj)

        Returns a flag indicating whether this instance is equal to the specified object.

        Overrides:
        equals in class Object
        Parameters:
        obj - the specified object to compare to this instance.
        Returns:
        a flag indicating whether this instance is equal to the specified object.
      • equals

        public static boolean equals(NullableBool obj1,
                                     NullableBool obj2)
        Returns a value indicating whether specified obj1 instance is equal to the specified obj2 instance.
        Parameters:
        obj1 - the first object to compare.
        obj2 - the second object to compare.
        Returns:
        returns true if specified obj1 instance is equal to the specified obj2 instance; otherwise, false.
      • getValue

        public final boolean getValue()

        Gets a bool value

        Returns:
        a bool value
      • setValue

        public final void setValue(boolean value)

        Sets a bool value

        Parameters:
        value - a bool value
      • hashCode

        public int hashCode()

        Returns a hash code value for the instance of the NullableBool class.

        Overrides:
        hashCode in class Object
        Returns:
        returns a hash code value for this object.
      • isDefined

        public final boolean isDefined()

        Returns true if the value was defined; otherwise, false.

        Returns:
        returns true if the value was defined; otherwise, false.
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the current object.
      • to_Boolean

        public static boolean to_Boolean(NullableBool val)

        Implicitly returns boolean value.

        Parameters:
        val - NullableBool instance to convert.
        Returns:
        boolean value.
      • to_NullableBool

        public static NullableBool to_NullableBool(boolean val)

        Implicitly converts bool value to the NullableBool instance.

        Parameters:
        val - Value to convert.
        Returns:
        Converted NullableBool instance.