public class ArrayVList extends AbstractList<Integer> implements RandomAccess, Serializable
modCount
Constructor and Description |
---|
ArrayVList() |
ArrayVList(int capacity) |
ArrayVList(int capacity,
double growFactor) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(int e,
double sleep,
boolean mark) |
boolean |
add(Integer e) |
void |
add(int index,
Integer element) |
boolean |
addAll(Collection<? extends Integer> c) |
boolean |
addAll(int index,
Collection<? extends Integer> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
void |
delete() |
Integer |
get(int index) |
protected void |
grow() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<Integer> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Integer> |
listIterator() |
ListIterator<Integer> |
listIterator(int index) |
Integer |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
protected void |
removeRange(int fromIndex,
int toIndex) |
boolean |
retainAll(Collection<?> c) |
Integer |
set(int index,
int element,
double sleep,
boolean mark) |
Integer |
set(int index,
Integer element) |
int |
size() |
List<Integer> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
equals, hashCode
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public ArrayVList()
public ArrayVList(int capacity)
public ArrayVList(int capacity, double growFactor)
public void delete()
public int size()
size
in interface Collection<Integer>
size
in interface List<Integer>
size
in class AbstractCollection<Integer>
public boolean isEmpty()
isEmpty
in interface Collection<Integer>
isEmpty
in interface List<Integer>
isEmpty
in class AbstractCollection<Integer>
public boolean contains(Object o)
contains
in interface Collection<Integer>
contains
in interface List<Integer>
contains
in class AbstractCollection<Integer>
public Object[] toArray()
toArray
in interface Collection<Integer>
toArray
in interface List<Integer>
toArray
in class AbstractCollection<Integer>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<Integer>
toArray
in interface List<Integer>
toArray
in class AbstractCollection<Integer>
protected void grow()
public boolean add(int e, double sleep, boolean mark)
public boolean add(Integer e)
add
in interface Collection<Integer>
add
in interface List<Integer>
add
in class AbstractList<Integer>
public boolean remove(Object o)
remove
in interface Collection<Integer>
remove
in interface List<Integer>
remove
in class AbstractCollection<Integer>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Integer>
containsAll
in interface List<Integer>
containsAll
in class AbstractCollection<Integer>
public boolean addAll(Collection<? extends Integer> c)
addAll
in interface Collection<Integer>
addAll
in interface List<Integer>
addAll
in class AbstractCollection<Integer>
public boolean addAll(int index, Collection<? extends Integer> c)
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Integer>
removeAll
in interface List<Integer>
removeAll
in class AbstractCollection<Integer>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Integer>
retainAll
in interface List<Integer>
retainAll
in class AbstractCollection<Integer>
public void clear()
clear
in interface Collection<Integer>
clear
in interface List<Integer>
clear
in class AbstractList<Integer>
public Integer get(int index)
public Integer set(int index, int element, double sleep, boolean mark)
protected void removeRange(int fromIndex, int toIndex)
removeRange
in class AbstractList<Integer>
public void add(int index, Integer element)
public Integer remove(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Integer>
lastIndexOf
in class AbstractList<Integer>
public ListIterator<Integer> listIterator()
listIterator
in interface List<Integer>
listIterator
in class AbstractList<Integer>
public ListIterator<Integer> listIterator(int index)
listIterator
in interface List<Integer>
listIterator
in class AbstractList<Integer>
Copyright © 2024. All rights reserved.