eclipse-collections
eclipse-collections copied to clipboard
Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API.
This class will be deprecated as part of #976 but will be kept around to prevent any serialization issues. As such, it will still be nice to add test coverage...
Hi all, as per http://beanvalidation.org/2.0/spec/#valueextractordefinition Bean validation 2.0 offers so called ValueExtractor mechanism to allow adding constraints for containers. I've added a couple of such extractors in a separate module...
Hi team, I wonder it would be better to change return type of Predicates#alwaysTrue as generics instead of Object. Following code does not compile right now. ` Predicate alwaysTrue =...
Reduce code duplication by making a few classes extend AbstractRichIterable, including: * ImmutableArrayStack * primitiveObjectHashMap * abstractImmutablePrimitiveObjectMap * immutablePrimitiveObjectHashMap * MutablePrimitiveObjectMap
Additional changes include - 1. Replace usage of newly deprecated methods. 2. Update interface Javadoc to align with deprecated implementation in (ImmutableMapFactoryImpl#ofMap). Closes gh-738 Signed-off-by: Kedar Joshi
Now that we have primitive versions of `flatCollect` that take target primitive collections on `RichIterable`, we can improve the symmetry on `LazyIterable` by adding primitive versions of `flatCollect` that are...
* Pre-size TreeSortedMap.take/drop. * Pre-size AbstractMutableSortedMap.zip. * Don't pre-size AbstractMutableSortedMap.select/reject/collectIf.
Implement unmodifiable Multimap wrappers like `UnmodifiableMutableListMultimap`, `UnmodifiableMutableSetMultimap`, etc. Implement `MutableMultimap asUnmodifiable();` in `MutableMultimap` and covariant overrides like `MutableListMultimap asUnmodifiable();` in `MutableListMultimap`. All interfaces that extend `MutableMultimap` should have an override,...
Signed-off-by: govi20 Add range() method to Interval which has a behavior similar to the IntStream.range
For immutable primitive collections, it makes sense to cache the hash code once it is calculated. Currently, it is recalculated everytime. A similar strategy to the one in java.lang.String#hashCode can...