Package org.incendo.cloud.help.result
Interface MultipleCommandResult<C>
- Type Parameters:
C- the command sender type
- All Superinterfaces:
HelpQueryResult<C>
A list of commands.
This is the result of a query that is not specific enough to point to a single command,
but unlike IndexCommandResult this is guaranteed to not be empty.
The longestPath() is the longest command path shared between all the results, and the
childSuggestions()} are the commands that share that common path.
-
Method Summary
Modifier and TypeMethodDescriptionReturns syntax hints for the children.Returns the longest path shared between the children.static <C> @NonNull MultipleCommandResult<C> of(@NonNull HelpQuery<C> query, @NonNull String longestPath, @NonNull List<@NonNull String> childSuggestions) Creates a new result.query()Returns the query.Methods inherited from interface org.incendo.cloud.help.result.HelpQueryResult
render
-
Method Details
-
of
static <C> @NonNull MultipleCommandResult<C> of(@NonNull HelpQuery<C> query, @NonNull String longestPath, @NonNull List<@NonNull String> childSuggestions) Creates a new result.- Type Parameters:
C- the command sender type- Parameters:
query- the query that prompted the resultlongestPath- the longest shared resultchildSuggestions- the syntax hints for the children- Returns:
- the result
-
query
Returns the query.- Specified by:
queryin interfaceHelpQueryResult<C>- Returns:
- the query
-
longestPath
Returns the longest path shared between the children.- Returns:
- the longest shared path
-
childSuggestions
Returns syntax hints for the children.- Returns:
- child suggestions
-