Package tech.kronicle.sdk.models
Class Tag
- java.lang.Object
-
- tech.kronicle.sdk.models.Tag
-
public final class Tag extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTag.TagBuilder
-
Constructor Summary
Constructors Constructor Description Tag(java.lang.String key, java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Tag.TagBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetKey()java.lang.StringgetValue()inthashCode()Tag.TagBuildertoBuilder()java.lang.StringtoString()TagwithKey(java.lang.String key)TagwithValue(java.lang.String value)
-
-
-
Method Detail
-
builder
public static Tag.TagBuilder builder()
-
toBuilder
public Tag.TagBuilder toBuilder()
-
getKey
public java.lang.String getKey()
-
getValue
public java.lang.String getValue()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withKey
public Tag withKey(java.lang.String key)
- Returns:
- a clone of this object, except with this updated property (returns
thisif 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
thisif an identical value is passed).
-
-