com.atlassian.core.util.filter
Class ListFilter

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

public class ListFilter
extends java.lang.Object

Filter the contents of a list based on some criteria.


Constructor Summary
ListFilter(Filter filter)
          Constructor, taking the filter implementation that will be used to filter the list.
 
Method Summary
 java.util.Iterator filterIterator(java.util.Iterator iterator)
          Filter the contents of an iterator.
 java.util.List filterList(java.util.List list)
          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 filter)
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 java.util.List filterList(java.util.List list)
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 java.util.Iterator filterIterator(java.util.Iterator iterator)
Filter the contents of an iterator. Returns an iterator that will only return un-filtered members of the supplied iterator.



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.