Class Command.Subcommand

  • Enclosing class:
    Command

    public static class Command.Subcommand
    extends java.lang.Object
    An Subcommand for a command.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getDescription()
      The description of this subcommand.
      java.lang.String getName()
      The name of this subcommand.
      java.util.List<Command.Option> getOptions()
      The options for this subcommand, or the subcommands within this group.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Subcommand

        public Subcommand​(DataObject json)
    • Method Detail

      • getName

        @Nonnull
        public java.lang.String getName()
        The name of this subcommand.
        Returns:
        The name
      • getDescription

        @Nonnull
        public java.lang.String getDescription()
        The description of this subcommand.
        Returns:
        The description
      • getOptions

        @Nonnull
        public java.util.List<Command.Option> getOptions()
        The options for this subcommand, or the subcommands within this group.
        Returns:
        Immutable list of Options
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object