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 Summary

      Constructors 
      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.
    • 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 @{code NullableBool} class 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 - the specified boolean value.
        isDefined - Nullable isDefined value
    • Method Detail

      • getValue

        public boolean getValue()

        Returns a boolean value.

        Returns:
        returns a boolean value.
      • setValue

        public void setValue(boolean value)
        Sets a boolean value.
        Parameters:
        value - a boolean value.
      • isDefined

        public boolean isDefined()

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

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

        public static boolean to_Boolean(NullableBool val)

        Implicitly returns boolean value.

        Parameters:
        val - NullableBool instance to convert.
        Returns:
        bool 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.
      • equals

        public boolean equals(NullableBool other)
        Returns a value indicating whether this instance is equal to the specified NullableBool instance.
        Parameters:
        other - the specified NullableBool object to compare with this instance.
        Returns:
        returns true if this instance is equal to the specified object; otherwise, false.
      • equals

        public boolean equals(Object other)
        Returns a value indicating whether this instance is equal to the specified object.
        Overrides:
        equals in class Object
        Parameters:
        other - the specified object to compare.
        Returns:
        returns true if this instance is equal to the specified object; otherwise, false.
      • hashCode

        public int hashCode()
        Returns a hash code for this NullableBool.
        Overrides:
        hashCode in class Object
        Returns:
        returns a hash code for this object.
      • toString

        public String toString()
        Returns a string representation of this NullableBool.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this NullableBool.
      • 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 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.