public class LazyList<E> extends Object implements List<E>
Modifier and Type | Class and Description |
---|---|
static interface |
LazyList.Loader<E> |
Constructor and Description |
---|
LazyList(LazyList.Loader<E> loader)
Constructor for LazyList.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o)
add
|
void |
add(int index,
E element)
add
|
boolean |
addAll(Collection<? extends E> arg0) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear()
clear
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> arg0) |
E |
get(int arg0) |
int |
indexOf(Object o) |
boolean |
isEmpty()
isEmpty
|
boolean |
isLoaded()
isLoaded
|
Iterator<E> |
iterator()
iterator
|
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator()
listIterator
|
ListIterator<E> |
listIterator(int index) |
E |
remove(int index)
remove
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> arg0) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element)
set
|
int |
size()
size
|
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray()
toArray
|
<T> T[] |
toArray(T[] arg0)
toArray
|
String |
toString()
toString
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
public LazyList(LazyList.Loader<E> loader)
Constructor for LazyList.
loader
- a LazyList.Loader
object.public int size()
size
public boolean removeAll(Collection<?> arg0)
public boolean addAll(Collection<? extends E> arg0)
public void clear()
clear
public boolean contains(Object o)
public boolean containsAll(Collection<?> arg0)
containsAll
in interface Collection<E>
containsAll
in interface List<E>
public boolean isEmpty()
isEmpty
public boolean remove(Object o)
public Object[] toArray()
toArray
public <T> T[] toArray(T[] arg0)
toArray
public String toString()
toString
public boolean isLoaded()
isLoaded
public boolean add(E o)
add
public void add(int index, E element)
add
public boolean addAll(int index, Collection<? extends E> c)
public int lastIndexOf(Object o)
lastIndexOf
in interface List<E>
public ListIterator<E> listIterator()
listIterator
listIterator
in interface List<E>
ListIterator
object.public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
public E remove(int index)
remove
public boolean retainAll(Collection<?> c)
Copyright © 2018. All rights reserved.