Class MethodSuggestionsProvider<C>
java.lang.Object
cloud.commandframework.annotations.suggestions.MethodSuggestionsProvider<C>
- Type Parameters:
C
- Command sender type
- All Implemented Interfaces:
BiFunction<cloud.commandframework.context.CommandContext<C>,
String, List<String>>
public final class MethodSuggestionsProvider<C>
extends Object
implements BiFunction<cloud.commandframework.context.CommandContext<C>,String,List<String>>
Represents a method annotated with
Suggestions
- Since:
- 1.3.0
-
Constructor Summary
ConstructorDescriptionMethodSuggestionsProvider
(@NonNull Object instance, @NonNull Method method) Create a new provider -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
MethodSuggestionsProvider
Create a new provider- Parameters:
instance
- Instance that owns the methodmethod
- The annotated method- Throws:
Exception
- If the method lookup fails
-
-
Method Details