File tree 1 file changed +11
-5
lines changed
src/main/java/com/rampatra/linkedlists
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 7
7
/**
8
8
* Created by IntelliJ IDEA.
9
9
* <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.
11
18
*
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
16
22
*/
17
23
public class LRUCache <E > {
18
24
You can’t perform that action at this time.
0 commit comments