Class BitSetFilteredList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- de.hybris.platform.util.collections.BitSetFilteredList<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
public class BitSetFilteredList<E> extends java.util.AbstractList<E>Convenience class for creating a sublist from a rather large original list using aBitSetspecifying which elements from the original list should occur inside the filtered list.This way the sub list does not allocate own memory but always delegates to the original one.
Modifications are not allowed!
-
-
Constructor Summary
Constructors Constructor Description BitSetFilteredList(java.util.BitSet permitted, E[] original)BitSetFilteredList(java.util.BitSet permitted, java.util.List<E> original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object o)Eget(int index)intindexOf(java.lang.Object o)intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Method Detail
-
get
public E get(int index)
-
contains
public boolean contains(java.lang.Object o)
-
indexOf
public int indexOf(java.lang.Object o)
-
-