Package org.astrogrid.samp.gui
Class MessageTrackerHubService.CallMap
- java.lang.Object
-
- org.astrogrid.samp.gui.MessageTrackerHubService.CallMap
-
- Enclosing class:
- MessageTrackerHubService
private static class MessageTrackerHubService.CallMap extends java.lang.Object
Keeps track of transmissions by key. It works somewhat like a Map, but with the difference that multiple values may be stored under a single key.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map
map_
-
Constructor Summary
Constructors Modifier Constructor Description private
CallMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.Object key, Transmission trans)
Adds a new entry.Transmission
remove(java.lang.Object key)
Reads and removes an entry.
-
-
-
Method Detail
-
add
public void add(java.lang.Object key, Transmission trans)
Adds a new entry.- Parameters:
key
- keytrans
- value
-
remove
public Transmission remove(java.lang.Object key)
Reads and removes an entry. If multiple values are stored under the given key, one of them (the first to have been stored) is returned, and any others are unaffected.- Parameters:
key
- key
-
-