Class Tag


  • public final class Tag
    extends java.lang.Object
    • Constructor Detail

      • Tag

        @ConstructorProperties({"key","value"})
        public Tag​(java.lang.String key,
                   java.lang.String value)
    • Method Detail

      • getKey

        public java.lang.String getKey()
      • getValue

        public java.lang.String getValue()
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withKey

        public Tag withKey​(java.lang.String key)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withValue

        public Tag withValue​(java.lang.String value)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).