-
Recent Posts
Recent Comments
- keiki on SimpleDateFormat in multithreaded environment
- EugeneChung on SimpleDateFormat in multithreaded environment
- keiki on Autoboxing: Traps and Advantages
- John-Paul Cunliffe on Autoboxing: Traps and Advantages
- ZeeMan on Unknown Java Features Part 1: BitSet
Archives
Categories
Meta
Tags
- Anti-Pattern
- autoboxing
- benchmark
- BitSet
- book
- boolean
- boolean array
- cache
- Calendar
- clean code
- code coverage
- common
- datetime
- FIFO
- Formatting
- harness
- hello world
- Integer
- JaCoCo
- Java
- Java 7
- Java 8
- JAXB
- jmh
- jodatime
- LinkedHashMap
- Linux
- logging
- LRU
- maven
- memory
- micro
- micro benchmarking
- multithreading
- Pattern
- Performance
- SimpleDateFormat
- sonar
- static
- String
- StringBuilder
- tips
- Tooling
- unknown features
- XML
-
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
Tag Archives: tips
Simple LRU or FIFO Cache
There is a very simple way to make a FIFO or LRU cache with the existing LinkedHashMap implementation of the default Java VM made by Joshua Bloch. The LinkedHashMap already has a method you can override, which defines when to … Continue reading