T - type of elementspublic class LinkedArrayList<T> extends Object implements List<T>
| Constructor and Description |
|---|
LinkedArrayList(int arraySize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T o) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
addlong(long index,
T element)
Add an element using a long index.
|
void |
appendArray(T[] array,
int offset,
int length)
Insert elements at the end of this collection.
|
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
T |
get(int index) |
T |
getlong(long index)
Get an element using a long index.
|
int |
indexOf(Object o) |
void |
insertFirstArray(T[] array,
int offset,
int length)
Insert elements at the beginning of this collection.
|
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
long |
longsize()
Return the size as long.
|
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
T[] |
removeFirstArray(Class<T> cl)
Remove all elements from the first array, and return an array containing them.
|
T |
removeLast()
Remove the last element and return it, or return null if empty.
|
T |
removelong(long index)
Remove an element using a long index.
|
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T2> T2[] |
toArray(T2[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic boolean add(T o)
public void addlong(long index,
T element)
public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index,
Collection<? extends T> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface List<T>public T getlong(long index)
public boolean isEmpty()
public boolean remove(Object o)
public T removelong(long index)
public boolean removeAll(Collection<?> c)
public T removeLast()
public T[] removeFirstArray(Class<T> cl)
public void insertFirstArray(T[] array, int offset, int length)
public void appendArray(T[] array, int offset, int length)
public int size()
public long longsize()
public boolean retainAll(Collection<?> c)
public ListIterator<T> listIterator(int index)
listIterator in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public <T2> T2[] toArray(T2[] a)
public Object[] toArray()
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>Copyright © 2019. All rights reserved.