Class TreeMapBundle

java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<String,SimpleCommand>
org.dellroad.jct.core.simple.TreeMapBundle
All Implemented Interfaces:
Serializable, Cloneable, Map<String,SimpleCommand>, NavigableMap<String,SimpleCommand>, SortedMap<String,SimpleCommand>, CommandBundle
Direct Known Subclasses:
Bundle, Bundle

public class TreeMapBundle extends TreeMap<String,SimpleCommand> implements CommandBundle
CommandBundle implementation using TreeMap.
See Also:
  • Constructor Details

    • TreeMapBundle

      public TreeMapBundle(String description)
      Default constructor.

      Creates an initially empty bundle.

      Parameters:
      description - bundle description
      Throws:
      IllegalArgumentException - if description is null
    • TreeMapBundle

      public TreeMapBundle(String description, Map<String,SimpleCommand> commands)
      Constructor.
      Parameters:
      description - bundle description
      commands - commands keyed by name
      Throws:
      IllegalArgumentException - if anything is null
  • Method Details