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, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode
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 © 2013 Nuxeo SA. All Rights Reserved.