E - public class BitList<E> extends AbstractList<E>
| Modifier and Type | Class and Description |
|---|---|
static class |
BitList.BitListIterator<E> |
| Constructor and Description |
|---|
BitList(List<E> originList) |
BitList(List<E> originList,
BitSet rootSet,
List<E> tailList) |
BitList(List<E> originList,
boolean empty) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
If the element to added is appeared in originList even if it is not in rootSet,
directly set its index in rootSet to true.
|
void |
addIndex(int index) |
BitList<E> |
and(BitList<E> target)
And operation between two bitList.
|
void |
clear()
Caution: This operation will clear originList for removing references purpose.
|
BitList<E> |
clone() |
boolean |
contains(Object o) |
static <T> BitList<T> |
emptyList() |
E |
get(int index) |
E |
getByIndex(int index) |
List<E> |
getOriginList() |
List<E> |
getTailList() |
boolean |
hasMoreElementInTailList() |
boolean |
indexExist(int index) |
int |
indexOf(Object o) |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object o)
If the element to added is appeared in originList,
directly set its index in rootSet to false.
|
int |
size() |
BitList<E> |
subList(int fromIndex,
int toIndex) |
int |
totalSetSize() |
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringaddAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic void addIndex(int index)
public int totalSetSize()
public boolean indexExist(int index)
public E getByIndex(int index)
public BitList<E> and(BitList<E> target)
target - target bitListpublic boolean hasMoreElementInTailList()
public static <T> BitList<T> emptyList()
public int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface List<E>contains in class AbstractCollection<E>public boolean add(E e)
add in interface Collection<E>add in interface List<E>add in class AbstractList<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface List<E>remove in class AbstractCollection<E>public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class AbstractList<E>public E get(int index)
public E remove(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>lastIndexOf in class AbstractList<E>public ListIterator<E> listIterator()
listIterator in interface List<E>listIterator in class AbstractList<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>listIterator in class AbstractList<E>Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.