code: private boolean valueCached(int index) {
          boolean result = false;
  
          if (generatedCacheMap.containsKey(index) == true || resultSetCacheMap.containsKey(index) == true) {
              result = true;
          }
  
          return result;
      }
docs: Checks if value(by index) is present in cache
  
  @param index index at which the specified element is to be inserted
  @return true if value is present in cache, false otherwize