boolean isExpired(ReferenceEntry<K, V> entry, long now) {
    checkNotNull(entry);
    if (expiresAfterAccess() && (now - entry.getAccessTime() >= expireAfterAccessNanos)) {
      return true;
    }
    if (expiresAfterWrite() && (now - entry.getWriteTime() >= expireAfterWriteNanos)) {
      return true;
    }
    return false;
  }
boolean isExpired(ReferenceEntry<K, V> entry, long now) {
    checkNotNull(entry);
    if (expiresAfterAccess() && (now - entry.getAccessTime() >= expireAfterAccessNanos)) {
      return true;
    }
    if (expiresAfterWrite() && (now - entry.getWriteTime() >= expireAfterWriteNanos)) {
      return true;
    }
    return false;
  }
boolean isExpired ( ReferenceEntry < K , V > entry , long now ) { checkNotNull ( entry ) ; if ( expiresAfterAccess ( ) && ( now - entry . getAccessTime ( ) >= expireAfterAccessNanos ) ) { return true ; } if ( expiresAfterWrite ( ) && ( now - entry . getWriteTime ( ) >= expireAfterWriteNanos ) ) { return true ; } return false ; }
Returns true if the entry has expired.
Returns true if the entry has expired .