Class AttributeList.AttributeEntry

  • Enclosing class:
    AttributeList

    private static class AttributeList.AttributeEntry
    extends java.lang.Object
    A name/value pair of the attribute list.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name
      The name of the attribute entry.
      private java.lang.String value
      The value of the attribute entry.
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributeEntry​(java.lang.String name, java.lang.String value)
      Creates a new attribute entry for the given name and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Checks whether the given object is an attribute entry with the same name.
      java.lang.String getName()
      Returns the attribute name.
      java.lang.String getValue()
      Returns the value of this attribute entry.
      int hashCode()
      Computes an hashcode for this entry.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
        The name of the attribute entry.
      • value

        private java.lang.String value
        The value of the attribute entry.
    • Constructor Detail

      • AttributeEntry

        public AttributeEntry​(java.lang.String name,
                              java.lang.String value)
        Creates a new attribute entry for the given name and value.
        Parameters:
        name - the attribute name (null not permitted).
        value - the attribute value (null not permitted).
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the attribute name.
        Returns:
        the name.
      • getValue

        public java.lang.String getValue()
        Returns the value of this attribute entry.
        Returns:
        the value of the entry.
      • equals

        public boolean equals​(java.lang.Object o)
        Checks whether the given object is an attribute entry with the same name.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the suspected other attribute entry.
        Returns:
        true if the given object is equal, false otherwise.
      • hashCode

        public int hashCode()
        Computes an hashcode for this entry.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hashcode.