Class Tags
java.lang.Object
aQute.bnd.service.tags.Tags
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends String> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleaninthashCode()booleanincludesAny(String... tags) booleanisEmpty()iterator()static Tagsstatic TagsParses a comma-separated string of tags into a Tags object.static StringHelper printing a csv-string of the tags for display purposes.booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
spliterator
-
Field Details
-
NO_TAGS
-
-
Method Details
-
size
-
isEmpty
-
contains
-
iterator
-
toArray
-
toArray
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<String>- Specified by:
containsAllin interfaceSet<String>
-
addAll
-
retainAll
-
removeAll
-
clear
-
equals
-
hashCode
-
toString
-
includesAny
- Parameters:
tags- (globs)- Returns:
trueif any of the given tags is included in the current set of tags, otherwise returnsfalse. Also if the current set of tags is empty, alsotrueis returned.
-
of
-
parse
-
print
Helper printing a csv-string of the tags for display purposes. TheTagged.EMPTY_TAGSis treated specially.- Returns:
- a comma separated string of tags. If tags contains just 1 tag
which is
Tagged.EMPTY_TAGSthen "-" is returned. If there are more than 1 tags, thenTagged.EMPTY_TAGSis omitted.
-