Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 97a3dea

Browse files
committed
Added comments
1 parent cb5ad1d commit 97a3dea

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/main/java/com/rampatra/linkedlists/LRUCache.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@
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
*/
1723
public class LRUCache<E> {
1824

0 commit comments

Comments
 (0)