code: public Result<V>[] getMatches(String lookup, int limit) {
          int strLen = lookup.length();
          char[] chars = new char[strLen + 1];
          lookup.getChars(0, strLen, chars, 0);
          chars[strLen] = '\uffff';
          
          List resultList = new ArrayList();
          fillMatchResults(chars, limit, resultList);
  
          return (Result[])resultList.toArray(new Result[resultList.size()]);
      }
docs: Returns an empty array if no matches.
  
  @param limit maximum number of results to return