class Conversations extends ConcurrentSkipListMap<String,Conversation>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
Conversations() |
Modifier and Type | Method and Description |
---|---|
Conversation |
get(Object key) |
Conversation |
put(String name,
Conversation conv) |
Conversation |
rename(String oldName,
String newName)
Renames a Conversation instance by removing it an putting it back.
|
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, equals, firstEntry, firstKey, floorEntry, floorKey, forEach, getOrDefault, headMap, headMap, higherEntry, higherKey, isEmpty, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, putIfAbsent, remove, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
hashCode, putAll, toString
private static final long serialVersionUID
public Conversation put(String name, Conversation conv)
put
in interface Map<String,Conversation>
put
in class ConcurrentSkipListMap<String,Conversation>
public Conversation get(Object key)
get
in interface Map<String,Conversation>
get
in class ConcurrentSkipListMap<String,Conversation>
public Conversation rename(String oldName, String newName)
Conversation.setName(String)
so that you can call either this
method or Conversation.setName(String)
to accomplish the same objective.oldName
- The original name of the conversation.newName
- The new name of the conversation.