Class SimpleCommandGroup

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleCommandGroup​(java.lang.String name, java.util.Collection<Command> commands)
      Creates a new command group with the given name and commands.
      SimpleCommandGroup​(java.lang.String name, Command... commands)
      Creates a new command group with the given name and commands.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<Command> commands()
      Returns all commands in this group.
      java.lang.String name()
      Returns the name of this command group.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleCommandGroup

        public SimpleCommandGroup​(java.lang.String name,
                                  Command... commands)
        Creates a new command group with the given name and commands.
        Parameters:
        name - the group name
        commands - the commands in this group
      • SimpleCommandGroup

        public SimpleCommandGroup​(java.lang.String name,
                                  java.util.Collection<Command> commands)
        Creates a new command group with the given name and commands.
        Parameters:
        name - the group name
        commands - the commands in this group
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: CommandGroup
        Returns the name of this command group.

        The default implementation returns the simple class name.

        Specified by:
        name in interface CommandGroup
        Returns:
        the group name
      • commands

        public java.util.Collection<Command> commands()
        Description copied from interface: CommandGroup
        Returns all commands in this group.
        Specified by:
        commands in interface CommandGroup
        Returns:
        the collection of commands, never null