public class SummaryImpl extends HashMap<String,SummaryEntry> implements Summary, Serializable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SummaryImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
displayEntry(StringBuffer sb,
SummaryEntry parentEntry)
Displays recursively on entry.
|
List<SummaryEntry> |
getChildren(SummaryEntry parentEntry) |
SummaryEntry |
getSummaryRoot()
Gets the root SummaryEntry in the map, usually identified by a key in the map set to 0.
|
boolean |
hasChild(SummaryEntry parentEntry)
Tests if the given entry has at least one child in the map.
|
String |
toFlatList()
Display all the map in a flat way.
|
String |
toString() |
String |
toTreeString()
Displays all the map hierarchically.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic SummaryImpl()
public boolean hasChild(SummaryEntry parentEntry)
Summarypublic List<SummaryEntry> getChildren(SummaryEntry parentEntry)
getChildren in interface SummaryparentEntry - is parent of children you want to getpublic String displayEntry(StringBuffer sb, SummaryEntry parentEntry)
SummarydisplayEntry in interface Summarysb - is the String to display.parentEntry - is the entry to displaypublic String toFlatList()
SummarytoFlatList in interface Summarypublic String toString()
toString in class AbstractMap<String,SummaryEntry>public String toTreeString()
SummarytoTreeString in interface Summarypublic SummaryEntry getSummaryRoot()
getSummaryRoot in interface SummaryCopyright © 2019 Nuxeo. All rights reserved.