File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
src/main/java/com/rampatra/linkedlists Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 77/**
88 * Created by IntelliJ IDEA.
99 * <p/>
10- * A simple LRU cache using {@link LinkedHashMap}.
10+ * A simple LRU cache using {@link LinkedHashMap}. A special
11+ * LinkedHashMap(capacity, loadFactor, accessOrderBoolean) constructor is
12+ * provided to create a linked hash map whose order of iteration is the
13+ * order in which its entries were last accessed, from least-recently
14+ * accessed to most-recently. Invoking the put or get method results
15+ * in an access to the corresponding entry. If the enclosing Map is
16+ * access-ordered, it moves the entry to the end of the list; otherwise,
17+ * it does nothing.
1118 *
12- * @author: ramswaroop
13- * @date: 7/8/15
14- * @time: 5:40 PM
15- * @see: http://javarticles.com/2012/06/linkedhashmap.html
19+ * @author ramswaroop
20+ * @link http://javarticles.com/2012/06/linkedhashmap.html
21+ * @since 7/8/15
1622 */
1723public class LRUCache <E > {
1824
You can’t perform that action at this time.
0 commit comments