@Immutable public final class Tag extends Object implements Comparable<Tag>
Tag is a String data type that does not get indexed for
full text search.
Each Tag is equivalent to its String counterpart (e.g.
Tag.create("foo").equals(new String("foo")) is true. Tags
merely exist for the client to instruct Concourse not to perform full text
indexing on the data. Within Concourse, Tags are stored on disk as strings.
So, any value that is written as a Tag is always returned as a String when
read from Concourse.
| Modifier and Type | Field and Description |
|---|---|
static Tag |
EMPTY_TAG
A singleton
Tag that represents the empty string. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Tag other) |
static Tag |
create(String value)
Return a Tag that embeds
value. |
boolean |
equals(Object other)
Return
true if other of type String or
Tag equals this Tag. |
String |
toString()
Return the String value that this Tag embeds.
|
public static Tag create(String value)
value.value - public int compareTo(Tag other)
compareTo in interface Comparable<Tag>public boolean equals(Object other)
true if other of type String or
Tag equals this Tag.