| Modifier and Type | Method and Description |
|---|---|
Tags |
and(Iterable<? extends Tag> tags)
Return a new
Tags instance by merging this collection and the specified tags. |
Tags |
and(String... keyValues)
Return a new
Tags instance by merging this collection and the specified key/value pairs. |
Tags |
and(String key,
String value)
Return a new
Tags instance by merging this collection and the specified key/value pair. |
Tags |
and(Tag... tags)
Return a new
Tags instance by merging this collection and the specified tags. |
static Tags |
concat(Iterable<? extends Tag> tags,
Iterable<Tag> otherTags)
Return a new
Tags instance by concatenating the specified collections of tags. |
static Tags |
concat(Iterable<? extends Tag> tags,
String... keyValues)
Return a new
Tags instance by concatenating the specified tags and 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, waitforEach, spliteratorpublic Tags and(String key, String value)
Tags instance by merging this collection and the specified 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 specified key/value pairs.keyValues - the key/value pairs to addTags instancepublic Tags and(@Nullable Tag... tags)
Tags instance by merging this collection and the specified tags.tags - the tags to addTags instancepublic Tags and(@Nullable Iterable<? extends Tag> tags)
Tags instance by merging this collection and the specified tags.tags - the tags to addTags instancepublic static Tags concat(@Nullable Iterable<? extends Tag> tags, @Nullable Iterable<Tag> otherTags)
Tags instance by concatenating the specified collections of tags.tags - the first set of tagsotherTags - the second set of tagspublic static Tags concat(@Nullable Iterable<? extends Tag> tags, @Nullable String... keyValues)
Tags instance by concatenating the specified tags and key/value pairs.tags - the first set of tagskeyValues - the additional key/value pairs to addpublic static Tags of(@Nullable 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(@Nullable String... keyValues)
Tags instance containing tags constructed from the specified key/value pairs.keyValues - the key/value pairs to addTags instancepublic static Tags of(@Nullable 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 © 2020 LeanCloud. All rights reserved.