| Modifier and Type | Method and Description |
|---|---|
Tags |
and(java.lang.Iterable<? extends Tag> tags)
Return a new
Tags instance my merging this collection and the specific tags. |
Tags |
and(java.lang.String... keyValues)
Return a new
Tags instance my merging this collection and the specific key/value pairs. |
Tags |
and(java.lang.String key,
java.lang.String value)
Return a new
Tags instance my merging this collection and the specific key/value pair. |
Tags |
and(Tag... tags)
Return a new
Tags instance my merging this collection and the specific tags. |
static Tags |
concat(java.lang.Iterable<? extends Tag> tags,
java.lang.Iterable<Tag> otherTags)
Return a new
Tags instance my concatenating the specified values. |
static Tags |
concat(java.lang.Iterable<? extends Tag> tags,
java.lang.String... keyValues)
Return a new
Tags instance my concatenating the specified key value pairs. |
static Tags |
empty()
Return a
Tags instance that contains no elements. |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.util.Iterator<Tag> |
iterator() |
static Tags |
of(java.lang.Iterable<? extends Tag> tags)
Return a new
Tags instance containing tags constructed from the specified source tags. |
static Tags |
of(java.lang.String... keyValues)
Return a new
Tags instance containing tags constructed from the specified key value pairs. |
static Tags |
of(java.lang.String key,
java.lang.String value)
Return a new
Tags instance containing tags constructed from the specified name value pair. |
static Tags |
of(Tag... tags)
Return a new
Tags instance containing tags constructed from the specified tags. |
java.util.stream.Stream<Tag> |
stream()
Return a stream of the contained tags.
|
public Tags and(java.lang.String key, java.lang.String value)
Tags instance my merging this collection and the specific key/value pair.key - the tag key to addvalue - the tag value addTags instancepublic Tags and(@Nullable java.lang.String... keyValues)
Tags instance my merging this collection and the specific key/value pairs.keyValues - the key value pairs to addTags instancepublic Tags and(@Nullable Tag... tags)
Tags instance my merging this collection and the specific tags.tags - the tags to addTags instancepublic Tags and(@Nullable java.lang.Iterable<? extends Tag> tags)
Tags instance my merging this collection and the specific tags.tags - the tags to addTags instancepublic java.util.Iterator<Tag> iterator()
iterator in interface java.lang.Iterable<Tag>public java.util.stream.Stream<Tag> stream()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable java.lang.Object obj)
equals in class java.lang.Objectpublic static Tags concat(java.lang.Iterable<? extends Tag> tags, java.lang.Iterable<Tag> otherTags)
Tags instance my concatenating the specified values.tags - the first set of tagsotherTags - the second set of tagspublic static Tags concat(java.lang.Iterable<? extends Tag> tags, java.lang.String... keyValues)
Tags instance my concatenating the specified key value pairs.tags - the first set of tagskeyValues - the additional key value pairs to addpublic static Tags of(java.lang.Iterable<? extends Tag> tags)
Tags instance containing tags constructed from the specified source tags.tags - the tags to addTags instancepublic static Tags of(java.lang.String key, java.lang.String value)
Tags instance containing tags constructed from the specified name value pair.key - the tag key to addvalue - the tag value to addTags instancepublic static Tags of(java.lang.String... keyValues)
Tags instance containing tags constructed from the specified key value pairs.keyValues - the key value pairs to addTags instancepublic static Tags of(Tag... tags)
Tags instance containing tags constructed from the specified tags.tags - the tags to addTags instance