mondrian.util
Class FilteredIterableList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<T>
mondrian.util.FilteredIterableList<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>, List<T>
public class FilteredIterableList<T>
- extends AbstractSequentialList<T>
Iterable list which filters undesirable elements.
To be used instead of removing elements from an iterable list.
- Since:
- december, 2007
- Author:
- Luis F. Canals
-
-
FilteredIterableList
public FilteredIterableList(List<? extends T> list,
FilteredIterableList.Filter filter)
get
public T get(int index)
- Specified by:
get
in interface List<T>
- Overrides:
get
in class AbstractSequentialList<T>
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interface List<T>
- Specified by:
listIterator
in class AbstractSequentialList<T>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<T>
- Specified by:
isEmpty
in interface List<T>
- Overrides:
isEmpty
in class AbstractCollection<T>
size
public int size()
- Specified by:
size
in interface Collection<T>
- Specified by:
size
in interface List<T>
- Specified by:
size
in class AbstractCollection<T>
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection<T>
- Specified by:
toArray
in interface List<T>
- Overrides:
toArray
in class AbstractCollection<T>
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection<T>
- Specified by:
hashCode
in interface List<T>
- Overrides:
hashCode
in class AbstractList<T>