Interface ArgumentIndex<T>

Type Parameters:
T - the type of the argument
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @AvailableSince("0.0.36") public interface ArgumentIndex<T>
Retrieves the argument from the context
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the argument from the context
  • Method Details

    • get

      T get(ArgumentContext context)
      Get the argument from the context
      Parameters:
      context - command context
      Returns:
      the argument