Class Tag


  • public final class Tag
    extends java.lang.Object
    Represents a tag that can be applied to data.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getKey()
      Get the key for the tag.
      java.lang.String getValue()
      Get the value for the tag.
      int hashCode()  
      static Tag of​(java.lang.String key, java.lang.String value)
      Create a tag from a key and value.
      • Methods inherited from class java.lang.Object

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

      • of

        public static Tag of​(java.lang.String key,
                             java.lang.String value)
        Create a tag from a key and value.
        Parameters:
        key - the key for the tag
        value - the value of the tag
        Returns:
        the new tag
      • getKey

        public java.lang.String getKey()
        Get the key for the tag.
        Returns:
        the key
      • getValue

        public java.lang.String getValue()
        Get the value for the tag.
        Returns:
        the value
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object