Web / Apache Commons Collections Interview questions
What are the main packages in Apache Commons Collections 4?
Commons Collections 4 organizes its classes under org.apache.commons.collections4 and a set of focused sub-packages rather than one large flat package.
- bag - Bag implementations like HashBag and TreeBag
- bidimap - DualHashBidiMap, DualTreeBidiMap, TreeBidiMap
- map - LRUMap, ReferenceMap, MultiKeyMap, LinkedMap
- multimap - ArrayListValuedHashMap, HashSetValuedHashMap
- functors - concrete Predicate, Transformer, Closure, Factory implementations
- iterators - LoopingIterator, FilterIterator, TransformIterator
- comparators - ComparatorChain, FixedOrderComparator
- trie - PatriciaTrie for prefix-based key lookups
Splitting the library this way keeps each concern isolated, so importing one feature set doesn't drag in unrelated classes.
More Related questions...