public interface TaggedValues
Options.internalize(String)
).Modifier and Type | Method and Description |
---|---|
void |
add(String tag,
String value)
Adds the given tag and its value to this collection.
|
SortedMap<String,List<String>> |
asMap() |
boolean |
containsKey(String tag) |
String[] |
get(String tag) |
String |
getFirstValue(String tag)
NOTE: Implements deprecated access to tagged values.
|
SortedMap<String,String> |
getFirstValues()
NOTE: Implements deprecated access to tagged values.
|
SortedMap<String,String> |
getFirstValues(String tagList)
NOTE: Implements deprecated access to tagged values.
|
boolean |
isEmpty() |
SortedSet<String> |
keySet() |
Options |
options() |
void |
put(String tag,
List<String> values)
Puts the given tag and its values into this collection.
|
void |
put(String tag,
String value)
Puts the given tag and its value into this collection.
|
void |
put(String tag,
String[] values)
Puts the given tag and its values into this collection.
|
void |
putAll(TaggedValues other)
Put all given tagged values into this collection.
|
void |
remove(Set<String> tvNames)
Removes the set of tagged values with given names from this collection.
|
void |
remove(String tvName)
Removes the tagged value with given name from this collection.
|
int |
size() |
int size()
boolean isEmpty()
true
if this collection is empty, else
false
boolean containsKey(String tag)
tag
- true
if this collection contains value(s) for the
given tag, else false
String[] get(String tag)
tag
- null
) if this collection does not contain values for
the tag.String getFirstValue(String tag)
Info#taggedValuesMult(String tagList)
instead.tag
- null
if this collection does not
contain value(s) for the given tag.SortedMap<String,List<String>> asMap()
null
.
NOTE 1: The resulting map is a deep copy of the tagged values stored in this collection, thus modifications to the map won't be reflected in this collection.
NOTE 2: if string interning is enabled (automatically checked and
performed through use of Options.internalize(String)
)
keys and string values of the resulting map have been
internalized.
SortedSet<String> keySet()
null
.
NOTE: The resulting set is a copy of the tagged value names stored in this collection, thus modifications to the set won't be reflected in this collection.
void put(String tag, String value)
tag
- value
- The value for the tag. NOTE: A null
value is
automatically converted to the empty stringvoid put(String tag, String[] values)
tag
- values
- The values for the tag. NOTE: A null
value is
automatically converted to the empty stringvoid put(String tag, List<String> values)
tag
- values
- The values for the tag. NOTE: A null
value is
automatically converted to the empty stringvoid putAll(TaggedValues other)
other
- can be empty or null
void add(String tag, String value)
tag
- value
- The value for the tag. NOTE: A null
value is
automatically converted to the empty stringSortedMap<String,String> getFirstValues()
Info#taggedValuesMult()
instead.null
.SortedMap<String,String> getFirstValues(String tagList)
Info#taggedValuesMult(String tagList)
instead.tagList
- comma-separated list of tagsnull
or empty, an empty map will be returned. The
resulting map can be empty but not null
.void remove(String tvName)
tvName
- void remove(Set<String> tvNames)
tvNames
- Options options()
Copyright © 2018. All rights reserved.