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, values
equals, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public SummaryImpl()
public boolean hasChild(SummaryEntry parentEntry)
Summary
public List<SummaryEntry> getChildren(SummaryEntry parentEntry)
getChildren
in interface Summary
parentEntry
- is parent of children you want to getpublic String displayEntry(StringBuffer sb, SummaryEntry parentEntry)
Summary
displayEntry
in interface Summary
sb
- is the String to display.parentEntry
- is the entry to displaypublic String toFlatList()
Summary
toFlatList
in interface Summary
public String toString()
toString
in class AbstractMap<String,SummaryEntry>
public String toTreeString()
Summary
toTreeString
in interface Summary
public SummaryEntry getSummaryRoot()
getSummaryRoot
in interface Summary
Copyright © 2015 Nuxeo SA. All rights reserved.