ElementType
- type of elements within the list@NotThreadSafe public class LazyList<ElementType> extends Object implements List<ElementType>, Serializable
Constructor and Description |
---|
LazyList() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ElementType item) |
void |
add(int index,
ElementType element) |
boolean |
addAll(Collection<? extends ElementType> collection) |
boolean |
addAll(int index,
Collection<? extends ElementType> collection) |
protected List<ElementType> |
buildList()
Builds an appropriate delegate for this list.
|
void |
clear() |
boolean |
contains(Object element) |
boolean |
containsAll(Collection<?> collections) |
boolean |
equals(Object obj) |
ElementType |
get(int index) |
int |
hashCode() |
int |
indexOf(Object element) |
boolean |
isEmpty() |
Iterator<ElementType> |
iterator() |
int |
lastIndexOf(Object element) |
ListIterator<ElementType> |
listIterator() |
ListIterator<ElementType> |
listIterator(int index) |
ElementType |
remove(int index) |
boolean |
remove(Object element) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
ElementType |
set(int index,
ElementType element) |
int |
size() |
List<ElementType> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] type) |
String |
toString() |
public boolean add(ElementType item)
add
in interface Collection<ElementType>
add
in interface List<ElementType>
public void add(int index, ElementType element)
add
in interface List<ElementType>
public boolean addAll(Collection<? extends ElementType> collection)
addAll
in interface Collection<ElementType>
addAll
in interface List<ElementType>
public boolean addAll(int index, Collection<? extends ElementType> collection)
addAll
in interface List<ElementType>
public void clear()
clear
in interface Collection<ElementType>
clear
in interface List<ElementType>
public boolean contains(Object element)
contains
in interface Collection<ElementType>
contains
in interface List<ElementType>
public boolean containsAll(Collection<?> collections)
containsAll
in interface Collection<ElementType>
containsAll
in interface List<ElementType>
public ElementType get(int index)
get
in interface List<ElementType>
public int indexOf(Object element)
indexOf
in interface List<ElementType>
public boolean isEmpty()
isEmpty
in interface Collection<ElementType>
isEmpty
in interface List<ElementType>
public Iterator<ElementType> iterator()
iterator
in interface Iterable<ElementType>
iterator
in interface Collection<ElementType>
iterator
in interface List<ElementType>
public int lastIndexOf(Object element)
lastIndexOf
in interface List<ElementType>
public ListIterator<ElementType> listIterator()
listIterator
in interface List<ElementType>
public ListIterator<ElementType> listIterator(int index)
listIterator
in interface List<ElementType>
public boolean remove(Object element)
remove
in interface Collection<ElementType>
remove
in interface List<ElementType>
public ElementType remove(int index)
remove
in interface List<ElementType>
public boolean removeAll(Collection<?> collection)
removeAll
in interface Collection<ElementType>
removeAll
in interface List<ElementType>
public boolean retainAll(Collection<?> collection)
retainAll
in interface Collection<ElementType>
retainAll
in interface List<ElementType>
public ElementType set(int index, ElementType element)
set
in interface List<ElementType>
public int size()
size
in interface Collection<ElementType>
size
in interface List<ElementType>
public List<ElementType> subList(int fromIndex, int toIndex)
subList
in interface List<ElementType>
public Object[] toArray()
toArray
in interface Collection<ElementType>
toArray
in interface List<ElementType>
public <T> T[] toArray(T[] type)
toArray
in interface Collection<ElementType>
toArray
in interface List<ElementType>
protected List<ElementType> buildList()
public int hashCode()
hashCode
in interface Collection<ElementType>
hashCode
in interface List<ElementType>
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface Collection<ElementType>
equals
in interface List<ElementType>
equals
in class Object
Copyright © 1999-2013. All Rights Reserved.