Class Tags
- java.lang.Object
-
- org.forgerock.monitoring.api.instrument.Tags
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tagsand(Iterable<? extends Tag> tags)Return a newTagsinstance my merging this collection and the specific tags.Tagsand(String... keyValues)Return a newTagsinstance my merging this collection and the specific key/value pairs.Tagsand(String key, String value)Return a newTagsinstance my merging this collection and the specific key/value pair.Tagsand(Tag... tags)Return a newTagsinstance my merging this collection and the specific tags.static Tagsconcat(Iterable<? extends Tag> tags, Iterable<Tag> otherTags)Return a newTagsinstance my concatenating the specified values.static Tagsconcat(Iterable<? extends Tag> tags, String... keyValues)Return a newTagsinstance my concatenating the specified key value pairs.static Tagsempty()Return aTagsinstance that contains no elements.booleanequals(Object obj)inthashCode()Iterator<Tag>iterator()static Tagsof(Iterable<? extends Tag> tags)Return a newTagsinstance containing tags constructed from the specified source tags.static Tagsof(String... keyValues)Return a newTagsinstance containing tags constructed from the specified key value pairs.static Tagsof(String key, String value)Return a newTagsinstance containing tags constructed from the specified name value pair.static Tagsof(Tag... tags)Return a newTagsinstance containing tags constructed from the specified tags.Stream<Tag>stream()Return a stream of the contained tags.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
and
public Tags and(String key, String value)
Return a newTagsinstance my merging this collection and the specific key/value pair.- Parameters:
key- the tag key to addvalue- the tag value add- Returns:
- a new
Tagsinstance
-
and
public Tags and(@Nullable String... keyValues)
Return a newTagsinstance my merging this collection and the specific key/value pairs.- Parameters:
keyValues- the key value pairs to add- Returns:
- a new
Tagsinstance
-
and
public Tags and(@Nullable Tag... tags)
Return a newTagsinstance my merging this collection and the specific tags.- Parameters:
tags- the tags to add- Returns:
- a new
Tagsinstance
-
and
public Tags and(@Nullable Iterable<? extends Tag> tags)
Return a newTagsinstance my merging this collection and the specific tags.- Parameters:
tags- the tags to add- Returns:
- a new
Tagsinstance
-
concat
public static Tags concat(Iterable<? extends Tag> tags, Iterable<Tag> otherTags)
Return a newTagsinstance my concatenating the specified values.- Parameters:
tags- the first set of tagsotherTags- the second set of tags- Returns:
- the merged tags
-
concat
public static Tags concat(Iterable<? extends Tag> tags, String... keyValues)
Return a newTagsinstance my concatenating the specified key value pairs.- Parameters:
tags- the first set of tagskeyValues- the additional key value pairs to add- Returns:
- the merged tags
-
of
public static Tags of(Iterable<? extends Tag> tags)
Return a newTagsinstance containing tags constructed from the specified source tags.- Parameters:
tags- the tags to add- Returns:
- a new
Tagsinstance
-
of
public static Tags of(String key, String value)
Return a newTagsinstance containing tags constructed from the specified name value pair.- Parameters:
key- the tag key to addvalue- the tag value to add- Returns:
- a new
Tagsinstance
-
of
public static Tags of(String... keyValues)
Return a newTagsinstance containing tags constructed from the specified key value pairs.- Parameters:
keyValues- the key value pairs to add- Returns:
- a new
Tagsinstance
-
of
public static Tags of(Tag... tags)
Return a newTagsinstance containing tags constructed from the specified tags.- Parameters:
tags- the tags to add- Returns:
- a new
Tagsinstance
-
-