Class AbstractAttribute

    • Constructor Detail

      • AbstractAttribute

        protected AbstractAttribute()
        Creates a new abstract attribute.
    • Method Detail

      • containsAll

        public boolean containsAll​(Collection<?> values)
        Description copied from interface: Attribute
        Indicates whether this attribute contains all the values in the collection.
        Specified by:
        containsAll in interface Attribute
        Parameters:
        values - The set of values for which to make the determination.
        Returns:
        true if this attribute contains all the values in the provided collection, or false if it does not contain at least one of them.
      • equals

        public final boolean equals​(Object o)
        Description copied from interface: Attribute
        Indicates whether the provided object is an attribute that is equal to this attribute. It will be considered equal if the attribute type, set of values, and set of options are equal.
        Specified by:
        equals in interface Attribute
        Overrides:
        equals in class Object
        Parameters:
        o - The object for which to make the determination.
        Returns:
        true if the provided object is an attribute that is equal to this attribute, or false if not.
      • hashCode

        public int hashCode()
        Description copied from interface: Attribute
        Retrieves the hash code for this attribute. It will be calculated as the sum of the hash code for the attribute type and all values.
        Specified by:
        hashCode in interface Attribute
        Overrides:
        hashCode in class Object
        Returns:
        The hash code for this attribute.
      • isEmpty

        public boolean isEmpty()
        Returns true if this attribute contains no attribute values.

        This implementation returns true if the Attribute.size() of this attribute is zero.

        Specified by:
        isEmpty in interface Attribute
        Returns:
        true if this attribute contains no attribute values.
      • isReal

        public boolean isReal()
        Description copied from interface: Attribute
        Indicates whether this is a real attribute (persisted) rather than a virtual attribute (dynamically computed).
        Specified by:
        isReal in interface Attribute
        Returns:
        true if this is a real attribute.
      • toString

        public final String toString()
        Description copied from interface: Attribute
        Retrieves a one-line string representation of this attribute.
        Specified by:
        toString in interface Attribute
        Overrides:
        toString in class Object
        Returns:
        A one-line string representation of this attribute.