Top "Apache-commons-collection" questions

Commons-Collections builds upon the Java collection classes by providing new interfaces, implementations and utilities.

How to convert a Collection to List?

I am using TreeBidiMap from the Apache Collections library. I want to sort this on the values which are doubles. …

java list sorting collections apache-commons-collection
What does the arrow operator, '->', do in Java?

While hunting through some code I came across the arrow operator, what exactly does it do? I thought Java did …

java intellij-idea apache-commons java-8 apache-commons-collection
CollectionUtils in java using predicate

I have a List<Object> and I want to return the first value that it finds true which …

java collections apache-commons apache-commons-collection
java.lang.NoClassDefFoundError: com.sun.org.apache.commons.beanutils.PropertyUtils

i am trying to use apache commons collections and predicate as follows: List<Cat> bigList = ....; // master list Collection&…

java apache-commons apache-commons-collection
Using a MultiValueMap from Apache Commons Collections

Given below an example of org.apache.commons.collections.map.MultiValueMap (from commons-collections-3.2.1) Map<String, Object> multiValueMap = MultiValueMap.…

java apache-commons-collection
One liner for getting a sublist from a Set

Is there a one-liner (maybe from Guava or Apache Collections) that gets a sublist from a set. Internally it should …

java guava apache-commons-collection
null-safe Collection contains method

What's the best way to do null-safe contains on a Java collection? in other words - if (collection != null &&…

java collections apache-commons-collection
Apache Commons MultiMap is deprecated, what should I use now?

Apache Commons' MultiMap interface with its MultiValueMap implementation is deprecated since version 4.1. And MultiHashMap seems to go entirely... What should …

java collections deprecated apache-commons-collection
Java Commons Collections removeAll

CollectionUtils::removeAll() Commons Collections 3.2.1 I must be going crazy, becuase it seems like this method is doing the inverse of …

java collections apache-commons-collection
How to iterate over MultiKeyMap?

I'm using the MultiKeyMap from the commons-collections which provide multikey-value pairs. I have 3 keys which are Strings. I have two …

java dictionary apache-commons-collection multikey