ph collection - phax/ph-commons GitHub Wiki
Extended collection classes with fluent APIs, multi maps, and specialized data structures.
Highlights:
-
CommonsArrayList,CommonsHashMap,CommonsHashSet,CommonsLinkedHashMap, etc. - collection implementations with additional convenience methods (findAll,findFirst,findFirstMapped, etc.) -
ICommonsList,ICommonsMap,ICommonsSet- fluent collection interfaces -
CollectionHelper- null-safe collection creation and manipulation - Multi maps:
MultiHashMapArrayListBased,MultiHashMapHashSetBased,MultiTreeMapArrayListBased, etc. -
LRUMap- Least Recently Used cache map -
SoftHashMap/SoftLinkedHashMap- soft reference maps for memory-sensitive caching -
RingBufferFifo/RingBufferLifo- ring buffer implementations -
IHasChildren/IChildrenProvider- hierarchy support interfaces
Add the following to your pom.xml to use this artifact:
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-collection</artifactId>
<version>x.y.z</version>
</dependency>Note: the Maven groupId changed in v10 from com.helger to com.helger.commons