Class Tags
java.lang.Object
org.forgerock.monitoring.api.instrument.Tags
An immutable collection of
Tags.-
Method Summary
Modifier and TypeMethodDescriptionReturn a newTagsinstance my merging this collection and the specific tags.Return a newTagsinstance my merging this collection and the specific key/value pairs.Return a newTagsinstance my merging this collection and the specific key/value pair.Return a newTagsinstance my merging this collection and the specific tags.static TagsReturn a newTagsinstance my concatenating the specified values.static TagsReturn a newTagsinstance my concatenating the specified key value pairs.static Tagsempty()Return aTagsinstance that contains no elements.booleaninthashCode()iterator()static TagsReturn a newTagsinstance containing tags constructed from the specified source tags.static TagsReturn a newTagsinstance containing tags constructed from the specified key value pairs.static TagsReturn a newTagsinstance containing tags constructed from the specified name value pair.static TagsReturn a newTagsinstance containing tags constructed from the specified tags.stream()Return a stream of the contained tags.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
and
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
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
Return a newTagsinstance my merging this collection and the specific tags.- Parameters:
tags- the tags to add- Returns:
- a new
Tagsinstance
-
and
Return a newTagsinstance my merging this collection and the specific tags.- Parameters:
tags- the tags to add- Returns:
- a new
Tagsinstance
-
iterator
-
stream
Return a stream of the contained tags.- Returns:
- a tags stream
-
hashCode
public int hashCode() -
equals
-
concat
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
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
Return a newTagsinstance containing tags constructed from the specified source tags.- Parameters:
tags- the tags to add- Returns:
- a new
Tagsinstance
-
of
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
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
Return a newTagsinstance containing tags constructed from the specified tags.- Parameters:
tags- the tags to add- Returns:
- a new
Tagsinstance
-
empty
Return aTagsinstance that contains no elements.- Returns:
- an empty
Tagsinstance
-