public class TaggedValuesCacheArray extends TaggedValuesImpl
options
Constructor and Description |
---|
TaggedValuesCacheArray(int size,
Options options) |
TaggedValuesCacheArray(Options options) |
TaggedValuesCacheArray(TaggedValues original,
Options options) |
TaggedValuesCacheArray(TaggedValues original,
String tagList,
Options options) |
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() |
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 |
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() |
options, putAll, toString
public TaggedValuesCacheArray(Options options)
public TaggedValuesCacheArray(int size, Options options)
public TaggedValuesCacheArray(TaggedValues original, Options options)
public TaggedValuesCacheArray(TaggedValues original, String tagList, Options options)
public boolean containsKey(String tag)
true
if this collection contains value(s) for the
given tag, else false
public String[] get(String tag)
null
) if this collection does not contain values for
the tag.public 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.
public void put(String tag, String[] values)
TaggedValues
public void put(String tag, List<String> values)
TaggedValues
public void add(String tag, String value)
TaggedValues
public SortedMap<String,String> getFirstValues()
TaggedValues
Info#taggedValuesMult()
instead.null
.public SortedMap<String,String> getFirstValues(String tagList)
TaggedValues
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
.public String getFirstValue(String tag)
TaggedValues
Info#taggedValuesMult(String tagList)
instead.null
if this collection does not
contain value(s) for the given tag.public int size()
public boolean isEmpty()
true
if this collection is empty, else
false
public 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.
public void put(String tag, String value)
TaggedValues
public void remove(String tvName)
TaggedValues
public void remove(Set<String> tvNames)
TaggedValues
Copyright © 2017. All rights reserved.