code: public List<QueryParameters> subListCached(int fromIndex, int toIndex) {
          ArrayList<QueryParameters> result = new ArrayList<QueryParameters>();
  
          result.addAll(generatedCacheMap.values());
          result.addAll(resultSetCacheMap.values());
  
          return result.subList(fromIndex, toIndex);
      }
docs: Returns sublist of cached elements.
  
  @param fromIndex low endpoint (inclusive) of the subList
  @param toIndex   high endpoint (exclusive) of the subList
  @return a view of the specified range within this list