public class CategoriesValues<VALUE_TYPE> extends LinkedHashMap<Category,LabelledQValues<VALUE_TYPE>> implements HasDescription, CommonAttributes, XMCDARootElement
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CategoriesValues() |
| Modifier and Type | Method and Description |
|---|---|
CategoriesValues<Double> |
asDouble() |
<U> CategoriesValues<U> |
convertTo(Class<U> clazz) |
Set<Category> |
getCategories() |
Description |
getDescription() |
String |
id() |
boolean |
isNumeric() |
String |
mcdaConcept() |
String |
name() |
LabelledQValues<VALUE_TYPE> |
put(Category category,
QualifiedValue<VALUE_TYPE> qvalue) |
LabelledQValues<VALUE_TYPE> |
put(Category category,
VALUE_TYPE value) |
LabelledQValues<VALUE_TYPE> |
setDefault(Category category,
VALUE_TYPE defaultValue)
Return the value attached to the supplied category.
|
void |
setDescription(Description description) |
void |
setId(String id) |
void |
setMcdaConcept(String mcdaConcept) |
void |
setName(String name) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic static final String TAG
public String id()
id in interface CommonAttributespublic void setId(String id)
setId in interface CommonAttributespublic String name()
name in interface CommonAttributespublic String mcdaConcept()
mcdaConcept in interface CommonAttributespublic void setName(String name)
setName in interface CommonAttributespublic void setMcdaConcept(String mcdaConcept)
setMcdaConcept in interface CommonAttributespublic void setDescription(Description description)
setDescription in interface HasDescriptionpublic Description getDescription()
getDescription in interface HasDescriptionpublic LabelledQValues<VALUE_TYPE> put(Category category, QualifiedValue<VALUE_TYPE> qvalue)
public LabelledQValues<VALUE_TYPE> put(Category category, VALUE_TYPE value)
public LabelledQValues<VALUE_TYPE> setDefault(Category category, VALUE_TYPE defaultValue)
category - the category for which the value is requesteddefaultValue - the default value to set if there is no value corresponding to the category already.public boolean isNumeric()
public CategoriesValues<Double> asDouble() throws ValueConverters.ConversionException
public <U> CategoriesValues<U> convertTo(Class<U> clazz) throws ValueConverters.ConversionException
Copyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.