- java.lang.Object
-
- org.github.gestalt.config.tag.Tag
-
public final class Tag extends java.lang.ObjectRepresents a tag that can be applied to data.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetKey()Get the key for the tag.java.lang.StringgetValue()Get the value for the tag.inthashCode()static Tagof(java.lang.String key, java.lang.String value)Create a tag from a key and value.
-
-
-
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 tagvalue- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-