Class Description


  • public final class Description
    extends java.lang.Object
    CommandArgument description
    • Method Summary

      Modifier and Type Method Description
      static @NonNull Description empty()
      Get an empty command description
      @NonNull java.lang.String getDescription()
      Get the command description
      static @NonNull Description of​(@NonNull java.lang.String string)
      Create a command description instance
      @NonNull java.lang.String toString()
      Get the command description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • empty

        public static @NonNull Description empty()
        Get an empty command description
        Returns:
        Command description
      • of

        public static @NonNull Description of​(@NonNull java.lang.String string)
        Create a command description instance
        Parameters:
        string - Command description
        Returns:
        Created command description
      • getDescription

        public @NonNull java.lang.String getDescription()
        Get the command description
        Returns:
        Command description
      • toString

        public @NonNull java.lang.String toString()
        Get the command description
        Overrides:
        toString in class java.lang.Object
        Returns:
        Command description