parquet-hadoop/src/main/java/org/apache/parquet/hadoop/LruCache.java
public V getCurrentValue(final K key) {
    V value = cacheMap.get(key);
    LOG.debug("Value for '{}' {} in cache", key, (value == null ? "not " : ""));
    if (value != null && !value.isCurrent(key)) {
      // value is not current; remove it and return null
      remove(key);
      return null;
    }

    return value;
  }
public V getCurrentValue(final K key) {
    V value = cacheMap.get(key);
    LOG.debug("Value for '{}' {} in cache", key, (value == null ? "not " : ""));
    if (value != null && !value.isCurrent(key)) {
      // value is not current; remove it and return null
      remove(key);
      return null;
    }

    return value;
  }
Returns the value to which the specified key is mapped, or null if 1) the
value is not current or 2) this cache contains no mapping for the key.
@param key the key whose associated value is to be returned
@return the value to which the specified key is mapped, or null if 1) the
value is not current or 2) this cache contains no mapping for the key