public class ConcatenableList<T> extends AbstractList<T>
modCount
Constructor and Description |
---|
ConcatenableList()
Creates an empty ConcatenableList.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T t) |
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> collection) |
void |
clear() |
void |
consolidate()
Performs a load of all elements into memory, removing sequential
access advantages.
|
T |
get(int index) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
T |
set(int index,
T t) |
int |
size() |
Object[] |
toArray() |
<T2> T2[] |
toArray(T2[] a) |
addAll, equals, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
contains, containsAll, remove, removeAll, retainAll, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator
parallelStream, removeIf, stream
public <T2> T2[] toArray(T2[] a)
toArray
in interface Collection<T>
toArray
in interface List<T>
toArray
in class AbstractCollection<T>
public Object[] toArray()
toArray
in interface Collection<T>
toArray
in interface List<T>
toArray
in class AbstractCollection<T>
public void consolidate()
public boolean addAll(Collection<? extends T> collection)
addAll
in interface Collection<T>
addAll
in interface List<T>
addAll
in class AbstractCollection<T>
public T get(int index)
public boolean add(T t)
add
in interface Collection<T>
add
in interface List<T>
add
in class AbstractList<T>
public void add(int index, T t)
public int size()
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
isEmpty
in interface List<T>
isEmpty
in class AbstractCollection<T>
public void clear()
clear
in interface Collection<T>
clear
in interface List<T>
clear
in class AbstractList<T>
public int hashCode()
hashCode
in interface Collection<T>
hashCode
in interface List<T>
hashCode
in class AbstractList<T>
Copyright © 2018 Hitachi Vantara. All rights reserved.