Package org.dellroad.jct.core.simple
Class TreeMapBundle
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,SimpleCommand> NavigableMap<String,,SimpleCommand> SortedMap<String,,SimpleCommand> CommandBundle
CommandBundle implementation using TreeMap.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionTreeMapBundle(String description) Default constructor.TreeMapBundle(String description, Map<String, SimpleCommand> commands) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet a one line description of this bundle.Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
Constructor Details
-
TreeMapBundle
Default constructor.Creates an initially empty bundle.
- Parameters:
description- bundle description- Throws:
IllegalArgumentException- ifdescriptionis null
-
TreeMapBundle
Constructor.- Parameters:
description- bundle descriptioncommands- commands keyed by name- Throws:
IllegalArgumentException- if anything is null
-
-
Method Details
-
getDescription
Description copied from interface:CommandBundleGet a one line description of this bundle.- Specified by:
getDescriptionin interfaceCommandBundle- Returns:
- bundle description
-