If I have an ArrayList<Double> dblList
and a Predicate<Double> IS_EVEN
I am able to remove all even elements from dblList
using:
Collections2.filter(dblList, IS_EVEN).clear()
if dblList
however is a result of a transformation like
dblList = Lists.transform(intList, TO_DOUBLE)
this does not work any more as the transformed list is immutable :-)
Any solution?