Package 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:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
public class FilteredIterableList<T> extends java.util.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FilteredIterableList.Filter<T>
Filter to determine which elements should be shown.
-
Constructor Summary
Constructors Constructor Description FilteredIterableList(java.util.List<? extends T> list, FilteredIterableList.Filter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(int index)
int
hashCode()
boolean
isEmpty()
java.util.ListIterator<T>
listIterator(int index)
int
size()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] contents)
-
Methods inherited from class java.util.AbstractList
add, clear, equals, indexOf, lastIndexOf, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toString
-
-
-
-
Constructor Detail
-
FilteredIterableList
public FilteredIterableList(java.util.List<? extends T> list, FilteredIterableList.Filter filter)
-
-