public class ReportMap extends Object
Constructor and Description |
---|
ReportMap()
Constructs an empty map.
|
ReportMap(ReportMap copy)
Constructs a map with the same content as a given template.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
<T> T |
get(ReportKey<T> key)
Retrieves an entry.
|
int |
hashCode() |
Set<ReportKey<?>> |
keySet()
Returns an ordered set of the keys actually present in this map.
|
<T> void |
put(ReportKey<T> key,
T value)
Sets an entry.
|
void |
putAll(ReportMap report)
Copies all the entries from a given map into this map.
|
String |
toString() |
String |
toString(boolean includeAll)
Returns a string representation of this map, with an option
to include or exclude the non-general-interest entries.
|
public ReportMap()
public ReportMap(ReportMap copy)
copy
- map whose contents are to be copiedpublic <T> void put(ReportKey<T> key, T value)
key
- keyvalue
- valuepublic void putAll(ReportMap report)
report
- map to copypublic <T> T get(ReportKey<T> key)
key
- keypublic Set<ReportKey<?>> keySet()
public String toString(boolean includeAll)
includeAll
- true to include all entries,
false to include only general-interest entriesCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.