Modifier and Type | Method and Description |
---|---|
Tags |
and(Iterable<? extends Tag> tags)
Return a new
Tags instance by merging this collection and the specific tags. |
Tags |
and(String... keyValues)
Return a new
Tags instance by merging this collection and the specific key/value pairs. |
Tags |
and(String key,
String value)
Return a new
Tags instance by merging this collection and the specific key/value pair. |
Tags |
and(Tag... tags)
Return a new
Tags instance by merging this collection and the specific tags. |
static Tags |
concat(Iterable<? extends Tag> tags,
Iterable<Tag> otherTags)
Return a new
Tags instance my concatenating the specified values. |
static Tags |
concat(Iterable<? extends Tag> tags,
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(Object obj) |
int |
hashCode() |
Iterator<Tag> |
iterator() |
static Tags |
of(Iterable<? extends Tag> tags)
Return a new
Tags instance containing tags constructed from the specified source tags. |
static Tags |
of(String... keyValues)
Return a new
Tags instance containing tags constructed from the specified key value pairs. |
static Tags |
of(String key,
String value)
Return a new
Tags instance containing tags constructed from the specified key value pair. |
static Tags |
of(Tag... tags)
Return a new
Tags instance containing tags constructed from the specified tags. |
Stream<Tag> |
stream()
Return a stream of the contained tags.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Tags and(String key, String value)
Tags
instance by merging this collection and the specific key/value pair.key
- the tag key to addvalue
- the tag value to addTags
instancepublic Tags and(@Nullable String... keyValues)
Tags
instance by merging this collection and the specific key/value pairs.keyValues
- the key value pairs to addTags
instancepublic Tags and(@Nullable Tag... tags)
Tags
instance by merging this collection and the specific tags.tags
- the tags to addTags
instancepublic Tags and(@Nullable Iterable<? extends Tag> tags)
Tags
instance by merging this collection and the specific tags.tags
- the tags to addTags
instancepublic static Tags concat(Iterable<? extends Tag> tags, Iterable<Tag> otherTags)
Tags
instance my concatenating the specified values.tags
- the first set of tagsotherTags
- the second set of tagspublic static Tags concat(Iterable<? extends Tag> tags, 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(Iterable<? extends Tag> tags)
Tags
instance containing tags constructed from the specified source tags.tags
- the tags to addTags
instancepublic static Tags of(String key, String value)
Tags
instance containing tags constructed from the specified key value pair.key
- the tag key to addvalue
- the tag value to addTags
instancepublic static Tags of(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
instancepublic static Tags empty()
Tags
instance that contains no elements.Tags
instanceCopyright © 2019. All rights reserved.