Package cdc.enums

Class BooleanEnumType

    • Method Detail

      • isSupported

        public boolean isSupported​(DagFeature feature)
        Description copied from interface: ListType
        Returns true when a feature is supported.

        Locking may make a feature not available even if it is supported.

        Specified by:
        isSupported in interface ListType<Boolean>
        Parameters:
        feature - The feature.
        Returns:
        true when feature is supported.
      • isLocked

        public boolean isLocked()
        Description copied from interface: ListType
        Returns true when modifications are disabled.

        A static implementation is always locked.
        After locking a dynamic implementation, it is impossible to unlock it.

        Specified by:
        isLocked in interface ListType<Boolean>
        Returns:
        true when modifications (creation, removal, ...) are disabled.
      • getChildren

        public List<Boolean> getChildren​(Boolean value)
        Description copied from interface: DagType
        Returns the children of a value.
        Specified by:
        getChildren in interface DagType<Boolean>
        Parameters:
        value - The value.
        Returns:
        The children of value
      • getParents

        public List<Boolean> getParents​(Boolean value)
        Description copied from interface: DagType
        Returns the parents of a value.
        Specified by:
        getParents in interface DagType<Boolean>
        Parameters:
        value - The value.
        Returns:
        The parents of value
      • getName

        public String getName​(Boolean value)
        Description copied from interface: EnumType
        Returns the name of a value.
        Specified by:
        getName in interface EnumType<Boolean>
        Parameters:
        value - The value.
        Returns:
        The name associated to value or null.
      • getQName

        public String getQName​(Boolean value)
        Description copied from interface: EnumType
        Returns the (preferred) qualified name (path) of a value.
        Specified by:
        getQName in interface EnumType<Boolean>
        Parameters:
        value - The value.
        Returns:
        The qualified name (path) of value or null.
      • isValid

        public boolean isValid​(Boolean value)
        Description copied from interface: ListType
        Returns true when a value is valid.

        Depending on the enum implementation, a value may be valid at a time and invalid at another time.
        Standard enums values are always valid.
        A null value is invalid.

        Specified by:
        isValid in interface ListType<Boolean>
        Parameters:
        value - The value.
        Returns:
        true if value is valid.
      • valueOf

        public Boolean valueOf​(String qname,
                               cdc.util.lang.FailureReaction reaction)
        Description copied from interface: EnumType
        Returns the value corresponding to a qualified name.
        Specified by:
        valueOf in interface EnumType<Boolean>
        Parameters:
        qname - The qualified name.
        reaction - The reaction to adopt when qname is unknown.
        Returns:
        The value corresponding to qname or null.
      • areEqual

        public boolean areEqual​(Boolean left,
                                Boolean right)
        Description copied from interface: ListType
        Returns true if 2 values are equal.
        Specified by:
        areEqual in interface ListType<Boolean>
        Parameters:
        left - The left value.
        right - The right value.
        Returns:
        true if left and right are equal.
      • isStrictlyOver

        public boolean isStrictlyOver​(Boolean left,
                                      Boolean right)
        Description copied from interface: DagType
        Returns true when one value is a strict superset of another value.
        Specified by:
        isStrictlyOver in interface DagType<Boolean>
        Parameters:
        left - The left value (potential superset).
        right - The right value.
        Returns:
        true when left is a superset of right.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object