- Fixed size value containers
- FixedSizeRollingContainer - Container that always holds x number of elements. It uses supplier to fill the container.
- FixedSizeRollingList - Remove first element if list capacity is exceeded.
- LRUMap - Map that keeps limited number of recently accessed elements.
- MimeType resolver - resolve a file mime type (deprecated).
- Text manipulation utils
- RegexReplacer - Replace regexp pattern using callback function.
- Time measurement
- TimeWatch - Measure time of an operation.
- MeasureHitsInPeriod - Measure amount of hits in defined period.
- TestClock - A java.time.Clock that ticks when it's required.
- SimpleCache - Very simple caching.
- Retriable - Retriable is an simple library to retry a code block if an exception has been raised.
- Chain responsibility pattern implementation.
- Java 8 or newer
<dependency>
<groupId>org.jsoftware</groupId>
<artifactId>jsoftware-utils</artifactId>
<version>1.4</version>
</dependency>
compile 'org.jsoftware:jsoftware-utils:1.4'
Apache License 2.0