public class ReportMap
extends java.lang.Object
Constructor | Description |
---|---|
ReportMap() |
Constructs an empty map.
|
ReportMap(ReportMap copy) |
Constructs a map with the same content as a given template.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
<T> T |
get(ReportKey<T> key) |
Retrieves an entry.
|
int |
hashCode() |
|
java.util.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.
|
java.lang.String |
toString() |
|
java.lang.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 java.util.Set<ReportKey<?>> keySet()
public java.lang.String toString(boolean includeAll)
includeAll
- true to include all entries,
false to include only general-interest entriespublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.