| Constructor and Description |
|---|
AggredatedData()
Creates a new AggredatedData with TreeMapUtils.DEFAULT_DATA_VALUE.
|
AggredatedData(String dataCollectionName)
Creates a new AggredatedData with TreeMapUtils.DEFAULT_DATA_VALUE.
|
AggredatedData(String dataCollectionName,
List<MapData> dataElements)
Creates an aggregated data from the given list of MapData.
|
AggredatedData(String dataCollectionName,
MapData... dataElements)
Creates an aggregated data from the given data elements.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildrenData(MapData data)
Add a child data.
|
List<MapData> |
getChildrenData()
Get the children aggregated data if any.
|
String |
getName()
Get the data name.
|
double |
getValue()
Get the data value.
|
boolean |
hasChildrenData()
If the data is an aggregation of children data.
|
void |
removeChildrenData(MapData data)
Remove a child data.
|
void |
setName(String newName)
Set the data name.
|
void |
setValue(double newValue)
Set the data value.
|
public AggredatedData(String dataCollectionName, List<MapData> dataElements)
dataCollectionName - the data namedataElements - list containing data to be aggregated as childrenpublic AggredatedData(String dataCollectionName, MapData... dataElements)
dataCollectionName - the data namedataElements - the data elements to be added as childrenpublic AggredatedData(String dataCollectionName)
dataCollectionName - the data namepublic AggredatedData()
public double getValue()
MapDatapublic void setValue(double newValue)
MapDatapublic void setName(String newName)
MapDatapublic List<MapData> getChildrenData()
MapDatagetChildrenData in interface MapDatapublic boolean hasChildrenData()
MapDatahasChildrenData in interface MapDatapublic void addChildrenData(MapData data)
MapDataaddChildrenData in interface MapDatadata - the data to be added as a child data to aggregatepublic void removeChildrenData(MapData data)
MapDataremoveChildrenData in interface MapDatadata - the data to be removedCopyright © 2017 H-K. All rights reserved.