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:
Iterable<T>,Collection<T>,List<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 ClassesModifier and TypeClassDescriptionstatic interfaceFilter to determine which elements should be shown. -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionFilteredIterableList(List<? extends T> list, FilteredIterableList.Filter filter) -
Method Summary
Methods inherited from class java.util.AbstractList
add, clear, equals, indexOf, lastIndexOf, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator
-
Constructor Details
-
FilteredIterableList
-
-
Method Details
-
get
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- Specified by:
listIteratorin classAbstractSequentialList<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>- Specified by:
isEmptyin interfaceList<T>- Overrides:
isEmptyin classAbstractCollection<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>- Specified by:
toArrayin interfaceList<T>- Overrides:
toArrayin classAbstractCollection<T>
-
toArray
public <T> T[] toArray(T[] contents) - Specified by:
toArrayin interfaceCollection<T>- Specified by:
toArrayin interfaceList<T>- Overrides:
toArrayin classAbstractCollection<T>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T>- Specified by:
hashCodein interfaceList<T>- Overrides:
hashCodein classAbstractList<T>
-