Class ArgumentStringArray

java.lang.Object
io.github.mqzn.commands.arguments.AbstractArgument<String[]>
io.github.mqzn.commands.arguments.ArgumentStringArray
All Implemented Interfaces:
Argument<String[]>

public final class ArgumentStringArray extends AbstractArgument<String[]>
  • Method Details

    • parse

      public <S> String[] parse(@UnknownNullability S sender, @NotNull @NotNull String command, @NotNull @NotNull String input)
      Description copied from interface: Argument
      Parses the raw input into it's argument type The argument type must be registered and defined by the user
      Type Parameters:
      S - the sender type
      Parameters:
      sender - the sender of the command
      command - the command
      input - the raw argument
      Returns:
      the parsed object from raw
    • toString

      public String toString(String[] obj)
      Description copied from class: AbstractArgument
      changes the type of argument's object to a string
      Specified by:
      toString in interface Argument<String[]>
      Overrides:
      toString in class AbstractArgument<String[]>
      Parameters:
      obj - the object type of the argument
      Returns:
      object as string