Package jss.commandapi
Class Utils
- java.lang.Object
- 
- jss.commandapi.Utils
 
- 
 public class Utils extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Utils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull List<String>setTabHelper(@NotNull List<String> options, String lastArgs)Filters a list of options and returns a new list containing only elements that start with the given prefix (`lastArgs`), ignoring case differences.static @NotNull List<String>setTabHelper_old(@NotNull List<String> options, String lastArgs)
 
- 
- 
- 
Method Detail- 
setTabHelper_old@NotNull public static @NotNull List<String> setTabHelper_old(@NotNull @NotNull List<String> options, String lastArgs) - Since:
- 0.0.5-alpha
 
 - 
setTabHelper@NotNull public static @NotNull List<String> setTabHelper(@NotNull @NotNull List<String> options, String lastArgs) Filters a list of options and returns a new list containing only elements that start with the given prefix (`lastArgs`), ignoring case differences.This method is commonly used to implement tab-completion functionality in commands or autocompletion in user inputs. - Parameters:
- options- the list of possible string options to filter (must not be null)
- lastArgs- the string prefix to match against the options (must not be null)
- Returns:
- a list of strings from the original list that start with the specified prefix, ignoring case
- Throws:
- NullPointerException- if any parameter is null
- Since:
- 0.0.5-alpha
 
 
- 
 
-