com.atlassian.core.util.filter
Class ListFilter<T>

java.lang.Object
  extended by com.atlassian.core.util.filter.ListFilter<T>

Deprecated. use Guava's Iterables.filter().

@Deprecated
public class ListFilter<T>
extends Object

Filter the contents of a list based on some criteria.


Constructor Summary
ListFilter(Filter<T> filter)
          Deprecated. Constructor, taking the filter implementation that will be used to filter the list.
 
Method Summary
 Iterator<T> filterIterator(Iterator<T> iterator)
          Deprecated. Filter the contents of an iterator.
 List<T> filterList(List<T> list)
          Deprecated. Filter the contents of a list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListFilter

public ListFilter(Filter<T> filter)
Deprecated. 
Constructor, taking the filter implementation that will be used to filter the list.

Parameters:
filter - the filter implementation that will be used to filter the list.
Method Detail

filterList

public List<T> filterList(List<T> list)
Deprecated. 
Filter the contents of a list. Returns a new list with the filtered objects removed. Does not change the list passed in.

Parameters:
list - the list to filter
Returns:
a new list with the filtered objects removed.

filterIterator

public Iterator<T> filterIterator(Iterator<T> iterator)
Deprecated. 
Filter the contents of an iterator. Returns an iterator that will only return un-filtered members of the supplied iterator.



Copyright © 2015 Atlassian. All rights reserved.