Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ianbishop
on March 6, 2013
|
parent
|
context
|
favorite
| on:
Solving Problems Using Data Structures
There is actually an LRU map implemented in Java, though it is sort of hidden in the LinkedHashMap using a special constructor.
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Linke...
jwn
on March 6, 2013
[–]
One issue with that is that it doesn't expel older entries. The capacity specified in the constructor is just the initial capacity.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Linke...