|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.tag.BasicTag
public final class BasicTag
Immutable tag.
| Constructor Summary | |
|---|---|
BasicTag(java.lang.String key,
java.lang.String value)
Creates a new instance with the specified key and value. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getKey()
Returns the key corresponding to this tag. |
java.lang.String |
getValue()
Returns the value corresponding to this tag. |
int |
hashCode()
|
static BasicTag |
parseTag(java.lang.String tagString)
Deprecated. Use Tags.parseTag instead. |
java.lang.String |
tagString()
Returns the string representation of this tag. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicTag(java.lang.String key,
java.lang.String value)
| Method Detail |
|---|
public java.lang.String getKey()
getKey in interface Tagpublic java.lang.String getValue()
getValue in interface Tagpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static BasicTag parseTag(java.lang.String tagString)
key=value.
Whitespace at the ends of the key and value will be removed. Both the key and value must
have at least one character.
tagString - string with encoded tag
public java.lang.String tagString()
tagString in interface Tag
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||