Questions tagged [eclipse-collections]
Questions related to Eclipse Collections, which is a collections framework for java and contains some improved collection types such as ListIterable, BiMap, Bag and MultiMap.
18
questions
2
votes
1answer
40 views
Eclipse Collections - Is there a containsAny() method for Sets?
I can't seem to find a containsAny() method for SetIterable types in Eclipse Collections. Is there one?
MutableSet<String> set1 = Sets.mutable.of("a", "b", "c");
...
2
votes
2answers
87 views
IntelliJ Java Type Renderers for Eclipse Collections with primitives
I have found Eclipse Collections very useful. Especially collections for primitive types (for example: IntObjectHashMap).
Unfortunately there is a problem with rendering these collections in IntelliJ ...
1
vote
1answer
70 views
Simple loop iteration over Eclipse Collections maps (for example: IntObjectHashMap)
Is there a way to use simple Java for-each loop over Eclipse Collections maps?
I am looking for something like this (but for Eclipse Collections maps):
for (Map.Entry<Integer, String> entry : ...
2
votes
1answer
76 views
Map with soft values in Eclipse Collections
I am currently looking at consolidating to a single collections library in a project I'm involved in, and though I have little experience with it, I really like the look of Eclipse Collections.
One ...
2
votes
1answer
119 views
Resources for understanding Fastutil internals
I'm looking for resources to understand how Java datatypes are implemented internally, and how libraries like Fastutil and Eclipse Collections provide faster implementations of the same. I tired ...
3
votes
0answers
107 views
Integration Eclipse Collections with Spring Data JPA
is it possible integration eclipse collections with spring data jpa + hibernate?
for example:
import org.springframework.data.jpa.repository.JpaRepository;
import org.eclipse.collections.api.list....
7
votes
2answers
238 views
Create an IntStream and a Stream<Integer> from an Eclipse Collections IntList/IntIterable
I have an Eclipse Collections IntList. How can I
Create a Java IntStream from this list
Create a Java Stream<Integer> from this list
without copying the elements?
1
vote
1answer
83 views
How can i make linked CharBag (Eclipse Collections)?
I know about CharBag bag = CharAdapter.adapt("hello world!").toBag();it's nice, but it's not linked.
I need bag with linked input string and how can i get keys and values from this collection to make ...
3
votes
3answers
187 views
Eclipse Collections sorting an IntList by a custom comparator-like function without boxing
I'm trying to sort a few (Mutable)IntList objects. The cost of boxing/unboxing integers is relevant in my program (which is exactly why I am using the primitive collections). I want to sort by the ...
2
votes
1answer
319 views
Using the Eclipse Collections library, how do I sort MutableMap on the value?
Suppose I have MutableMap<String, Integer>, and I want to sort on the Integer value.
What would be the recommended way to do that with this library? Is there a utility or method or recommended ...
2
votes
1answer
149 views
Eclipse Collection usages on production code
https://www.eclipse.org/collections/ seems to be getting popular now a days. Just wonder, if anybody has used this library in their production code and how is the overall experience.
4
votes
1answer
1k views
Did Eclipse Collections get deprecated by Java 8? [closed]
I recently stumbled across Eclipse Collections, and they look awesome - pretty much about as awesome as Java 8 streams looked. I read through a few introductions, presentations and tutorials, and it ...
0
votes
1answer
170 views
How to convert MutableMap to ObjectDoubleMap using Eclipse Collections?
How to convert MutableMap<String, Double> to ObjectDoubleMap<String> using Eclipse Collections?
In my use case, I have a mutable map which is aggregated result. For example;
MutableMap&...
0
votes
1answer
129 views
Using Eclipe Collections with Android - build.gradle fails
For an Android project which I'm developing I need* to use the Eclipse Collections framework. So I integrated it to my build.gradle according to their "get started", and imported the needed libraries. ...
1
vote
1answer
225 views
How would you do a removeIf on a list or set for primitives in eclipse collections?
On regular java collections it's possible to remove an element given an input Predicate.
persons.removeIf(person -> person.isMale());
In eclipse collections it seems possible to do this as long ...
1
vote
1answer
110 views
HashBag in-place remove
There are a large number of elements saved in a HashBag (of Eclipse Collections framework). Now all elements with less than k occurrences should be removed.
This could be done with:
bag.removeAll(...
2
votes
0answers
215 views
Why are most eclipse collections types Serializable?
I'm looking for design rationale here.
I can understand making collection classes Serializable as a matter of course, although JCF doesn't do that. Nevertheless, the Procedure, IntProcedure, etc. ...
0
votes
1answer
179 views
Where are the eclipse-collections source jars?
I couldn't find these artifacts:
eclipse-collections-api-7.1.0-sources.jar
eclipse-collections-7.1.0-sources.jar
I ended up creating them myself, but that was a pain since the build is broken on OSX ...