Package uk.ac.starlink.ttools.plot2
Class ReportMap
java.lang.Object
uk.ac.starlink.ttools.plot2.ReportMap
Map containing typed entries generated as a result of plotting.
The sequence in which entries are added is significant;
general interest entries should be added in the order in which
it makes sense for a UI to present them to the user.
- Since:
- 9 Dec 2014
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> T
Retrieves an entry.int
hashCode()
keySet()
Returns an ordered set of the keys actually present in this map.<T> void
Sets an entry.void
Copies all the entries from a given map into this map.toString()
toString
(boolean includeAll) Returns a string representation of this map, with an option to include or exclude the non-general-interest entries.
-
Constructor Details
-
ReportMap
public ReportMap()Constructs an empty map. -
ReportMap
Constructs a map with the same content as a given template.- Parameters:
copy
- map whose contents are to be copied
-
-
Method Details
-
put
Sets an entry.- Parameters:
key
- keyvalue
- value
-
putAll
Copies all the entries from a given map into this map.- Parameters:
report
- map to copy
-
get
Retrieves an entry.- Parameters:
key
- key- Returns:
- associated value; if no entry present, null is returned
-
keySet
Returns an ordered set of the keys actually present in this map. The sequence is the order in which entries were set.- Returns:
- list of keys
-
toString
Returns a string representation of this map, with an option to include or exclude the non-general-interest entries.- Parameters:
includeAll
- true to include all entries, false to include only general-interest entries- Returns:
- string representation of this map, zero-length if there are no items of interest
-
hashCode
public int hashCode() -
equals
-
toString
-