src/main/java/seedu/address/ui/autocompleter/Autocompleter.java
private boolean containsIndex(String arguments) {
        String parameters = arguments;
        Prefix[] prefixes = AutocompleteCommand.ALL_PREFIXES;
        if (lastTwoCharactersArePrefix(arguments)) {
            parameters = arguments + SPACE;
        } else if (lastCharIsStartOfPrefix(arguments)) {
            parameters = arguments + PREFIX_INDICATOR + SPACE;
        }
        ArgumentMultimap argMap = ArgumentTokenizer.tokenize(parameters, prefixes);
        String index = argMap.getPreamble();
        return (!index.equals(EMPTY_STRING) && isNumeric(index));
    }
/**
     * Returns true if the index field in the {@code arguments} has been filled in
     *
     * @param arguments the current {@code String} of the arguments in the {@code CommandBox}
     */
Returns true if the index field in the  arguments has been filled in
@param arguments the current  String of the arguments in the  CommandBox
Returns true if the index field in the arguments has been filled in @param arguments the current String of the arguments in the CommandBox
private boolean containsIndex(String arguments) {
        String parameters = arguments;
        Prefix[] prefixes = AutocompleteCommand.ALL_PREFIXES;
        if (lastTwoCharactersArePrefix(arguments)) {
            parameters = arguments + SPACE;
        } else if (lastCharIsStartOfPrefix(arguments)) {
            parameters = arguments + PREFIX_INDICATOR + SPACE;
        }
        ArgumentMultimap argMap = ArgumentTokenizer.tokenize(parameters, prefixes);
        String index = argMap.getPreamble();
        return (!index.equals(EMPTY_STRING) && isNumeric(index));
    }
private boolean containsIndex ( String arguments ) { String parameters = arguments ; Prefix [ ] prefixes = AutocompleteCommand . ALL_PREFIXES ; if ( lastTwoCharactersArePrefix ( arguments ) ) { parameters = arguments + SPACE ; } else if ( lastCharIsStartOfPrefix ( arguments ) ) { parameters = arguments + PREFIX_INDICATOR + SPACE ; } ArgumentMultimap argMap = ArgumentTokenizer . tokenize ( parameters , prefixes ) ; String index = argMap . getPreamble ( ) ; return ( ! index . equals ( EMPTY_STRING ) && isNumeric ( index ) ) ; }
Returns true if the index field in the {@code arguments} has been filled in
 @param arguments the current {@code String} of the arguments in the {@code CommandBox}
Returns true if the index field in the { @code arguments } has been filled in @param arguments the current { @code String } of the arguments in the { @code CommandBox }