Class Attribute


  • public final class Attribute
    extends Object
    Represents an attribute.

    According to the man page, an attribute can have the following states:

    Since:
    3.7
    • Constructor Detail

      • Attribute

        public Attribute​(String key,
                         String value)
        Creates a new instance.
        Parameters:
        key - the attribute key. Should not be null.
        value - the custom attribute value
    • Method Detail

      • getKey

        public String getKey()
        Returns:
        the attribute key (never returns null)
      • getState

        public Attribute.State getState()
        Returns the state.
        Returns:
        the state (never returns null)
      • getValue

        public String getValue()
        Returns:
        the attribute value (may be null)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object