[
https://issues.apache.org/jira/browse/COLLECTIONS-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16308865#comment-16308865
]
Gary Gregory commented on COLLECTIONS-665:
------------------------------------------
Have you tried using a
{{org.apache.commons.collections4.iterators.FilterIterator<E>}} with a
{{org.apache.commons.collections4.functors.NotNullPredicate.notNullPredicate()}}
like:
{code:java}
Iterator nonNullIterator =
FilterIterator.FilterIterator(myCollection.iterator(),
NotNullPredicate.notNullPredicate());
{code}
> Add Iterator that filters out NULL Values
> -----------------------------------------
>
> Key: COLLECTIONS-665
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-665
> Project: Commons Collections
> Issue Type: Improvement
> Components: Iterator
> Affects Versions: 4.2
> Reporter: BELUGA BEHR
> Priority: Minor
>
> Create a utility function that creates an Iterator around a Collection. This
> iterator will skip all values in the collection that are 'null' values within
> the collection, only returning items with a value.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)