T - The type to be parsed.C - The type of the context which the resolver would get its data from.@FunctionalInterface public interface ContextResolver<T,C extends CommandExecutionContext<?,? extends CommandIssuer>>
T from C.| Modifier and Type | Method and Description |
|---|---|
T |
getContext(C c)
Parses the context of type
C into T, or throws an exception. |
T getContext(C c) throws InvalidCommandArgument
C into T, or throws an exception.c - The context to parse from.InvalidCommandArgument - In case the context contains any discrepancies, it will throw this exception.Copyright © 2019. All rights reserved.