public class SubList<E> extends AbstractList<E> implements List<E>
| Modifier and Type | Field and Description |
|---|---|
protected BasicEventList<E> |
list |
protected int |
offset |
protected int |
size |
modCount| Constructor and Description |
|---|
SubList(BasicEventList<E> list,
int beginIndex,
int endIndexExclusive) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
get(int index) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
int |
lastIndexOf(Object o) |
E |
remove(int index) |
E |
set(int index,
E e) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
addAll, equals, hashCode, iterator, listIterator, listIterator, removeRange, subListremove, removeAll, retainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subListparallelStream, removeIf, streamprotected BasicEventList<E> list
protected int size
protected int offset
public SubList(BasicEventList<E> list, int beginIndex, int endIndexExclusive)
public int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>isEmpty 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 Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in class AbstractCollection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface List<E>toArray 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 containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>containsAll in class AbstractCollection<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface List<E>addAll 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 void add(int index,
E e)
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>Copyright © 2017. All rights reserved.