Class CommandInfo

java.lang.Object
net.apartium.cocoabeans.commands.CommandInfo

@AvailableSince("0.0.30") public class CommandInfo extends Object
  • Constructor Details

    • CommandInfo

      public CommandInfo()
  • Method Details

    • getDescription

      public Optional<String> getDescription()
      Get the first description
      Returns:
      the first description
    • getUsage

      public Optional<String> getUsage()
      Get the first usage
      Returns:
      the first usage
    • getLongDescription

      public Optional<String[]> getLongDescription()
      Get the first long description
      Returns:
      the first long description
    • getDescriptions

      public List<String> getDescriptions()
      Get all descriptions
      Returns:
      all descriptions
    • getUsages

      public List<String> getUsages()
      Get all usages
      Returns:
      all usages
    • getLongDescriptions

      public List<String[]> getLongDescriptions()
      Get all long descriptions
      Returns:
      all long descriptions
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • createFromAnnotations

      public static CommandInfo createFromAnnotations(Collection<Annotation[]> collection)