org.apache.solr.util

## Class ConcurrentLRUCache.CacheEntry<K,V>

- java.lang.Object
- - org.apache.solr.util.ConcurrentLRUCache.CacheEntry<K,V>

- All Implemented Interfaces:
    Comparable<ConcurrentLRUCache.CacheEntry<K,V>>
  Enclosing class:
    ConcurrentLRUCache<K,V>

      public static class ConcurrentLRUCache.CacheEntry<K,V>
      extends Object
      implements Comparable<ConcurrentLRUCache.CacheEntry<K,V>>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CacheEntry(K key, V value, long lastAccessed)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(ConcurrentLRUCache.CacheEntry<K,V> that)`
    `boolean` | `equals(Object obj)`
    `int` | `hashCode()`
    `void` | `setLastAccessed(long lastAccessed)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### CacheEntry

          public CacheEntry(K key,
                            V value,
                            long lastAccessed)

  - ### Method Detail

    - #### setLastAccessed

          public void setLastAccessed(long lastAccessed)

    - #### compareTo

          public int compareTo(ConcurrentLRUCache.CacheEntry<K,V> that)

      Specified by:
        `compareTo` in interface `Comparable<ConcurrentLRUCache.CacheEntry<K,V>>`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.