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.

Eclipse Collections is a collections framework for Java. It has JDK-compatible List, Set and Map implementations with a rich API and set of utility classes that work with any JDK compatible Collections, Arrays, Maps or Strings. The iteration protocol was inspired by the Smalltalk collection framework.

Eclipse Collections grew out of GS Collections.

23 questions
1
vote
1 answer

How to deserialise Eclipse Collections types?

I came across this library eclipse-collections and it fits my use case. But unfortunately, I am not able to deserialize it using either Gson or Jackson - the two most popular libraries for serialization/deserialization. Does any of the two libraries…
paradocslover
  • 2,932
  • 3
  • 18
  • 44
1
vote
1 answer

Eclipse Collections, prepend immutable list

How to prepend (ideally O(1)) to an immutable List (of Eclipse Collections)
caeus
  • 3,084
  • 1
  • 22
  • 36
1
vote
1 answer

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 entry : map.entrySet()) { } ... but I can't find anything like…
adaslaw
  • 170
  • 11
1
vote
1 answer

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 output like: h 1 e 1 l 3 o 2 1 w 1 r 1 d 1 ! 1
Deepstack
  • 96
  • 8
1
vote
1 answer

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 as the collection being used extends Iterable. For…
Vivek Rao
  • 576
  • 4
  • 25
0
votes
1 answer

How to convert MutableMap to ObjectDoubleMap using Eclipse Collections?

How to convert MutableMap to ObjectDoubleMap using Eclipse Collections? In my use case, I have a mutable map which is aggregated result. For example; MutableMap map = list.aggregateBy(func, factory,…
fabfas
  • 2,200
  • 1
  • 21
  • 21
0
votes
1 answer

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. The problem is that when I tried to run the app…
0
votes
1 answer

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 & Windows.
willkil
  • 1,619
  • 1
  • 21
  • 33
1
2