public final class CommandUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Enum<T>> |
collectCompletions(Enum<T>[] elements,
String prefix,
int limit,
Function<Integer,List<String>> listFunction) |
static <T> List<String> |
collectCompletions(Iterable<T> collection,
String prefix,
int limit,
Function<Integer,List<String>> listFunction,
Function<T,String> toStringFunction) |
static CommandInfo |
getCommandInfo(Object... injectorArgs) |
static Context |
getContext(Object... injectorArgs) |
public static <T> List<String> collectCompletions(Iterable<T> collection, String prefix, int limit, Function<Integer,List<String>> listFunction, Function<T,String> toStringFunction)
public static <T extends Enum<T>> List<String> collectCompletions(Enum<T>[] elements, String prefix, int limit, Function<Integer,List<String>> listFunction)
public static CommandInfo getCommandInfo(Object... injectorArgs)
Copyright © 2021. All rights reserved.