public class LazyList extends AbstractList
| Modifier and Type | Field and Description |
|---|---|
static Iterator |
EMPTY_ITERATOR
Singleton iterator for empty collection.
|
static LazyList |
EMPTY_LIST
Unmodifiable empty list instance.
|
modCount| Constructor and Description |
|---|
LazyList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
void |
compact()
Compact the list, removing any
null values. |
Object |
get(int index) |
int |
getModCount()
Get modify counter.
|
Iterator |
iterator() |
Object |
remove(int index) |
void |
remove(int from,
int to)
Remove range of values.
|
protected void |
removeRange(int from,
int to) |
Object |
set(int index,
Object element) |
int |
size() |
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic static final Iterator EMPTY_ITERATOR
public static final LazyList EMPTY_LIST
public Object get(int index)
get in interface Listget in class AbstractListpublic int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic void add(int index,
Object element)
add in interface Listadd in class AbstractListpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listiterator in class AbstractListpublic Object remove(int index)
remove in interface Listremove in class AbstractListpublic Object set(int index, Object element)
set in interface Listset in class AbstractListprotected void removeRange(int from,
int to)
removeRange in class AbstractListpublic int getModCount()
public void remove(int from,
int to)
removeRange(int, int)from - Fromto - Topublic void compact()
null values.Copyright © 2005–2016 jibx.org. All rights reserved.