public class SmartList<E>
extends java.util.AbstractList<E>
implements java.util.RandomAccess
Constructor and Description |
---|
SmartList() |
SmartList(java.util.Collection<? extends E> elements) |
SmartList(E... elements) |
SmartList(E element) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
add(int index,
E e) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
void |
forEach(java.util.function.Consumer<? super E> action) |
E |
get(int index) |
int |
getModificationCount() |
int |
indexOf(java.lang.Object o) |
java.util.Iterator<E> |
iterator() |
E |
remove(int index) |
E |
set(int index,
E element) |
int |
size() |
void |
sort(java.util.Comparator<? super E> comparator) |
<T> T [] |
toArray(T [] a) |
void |
trimToSize()
Trims the capacity of this list to be the
list's current size.
|
addAll, hashCode, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public SmartList()
public SmartList(E element)
public SmartList(java.util.Collection<? extends E> elements)
@SafeVarargs public SmartList(E... elements)
public E get(int index)
public boolean add(E e)
public void add(int index, E e)
public int size()
public void clear()
public E remove(int index)
public java.util.Iterator<E> iterator()
public void sort(java.util.Comparator<? super E> comparator)
sort
in interface java.util.List<E>
public int getModificationCount()
public <T> T [] toArray(T [] a)
public void trimToSize()
public int indexOf(java.lang.Object o)
public boolean contains(java.lang.Object o)
public boolean equals(java.lang.Object o)