public class UnsafeArrayList<T> extends AbstractList<T>
modCount| Constructor and Description |
|---|
UnsafeArrayList(Class<T> elementType,
int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T element)
Adds the specified object at the end of this List.
|
T[] |
array() |
T |
get(int i)
Returns the element at the specified location in this list.
|
int |
size()
Returns a count of how many objects this
Collection contains. |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, copyOf, isEmpty, of, of, of, of, of, of, of, of, of, of, of, of, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayforEach, parallelStream, removeIf, stream, toArraypublic boolean add(T element)
AbstractListadd in interface Collection<T>add in interface List<T>add in class AbstractList<T>element - the object to addpublic T[] array()
public T get(int i)
AbstractListpublic int size()
AbstractCollectionCollection contains.
In this class this method is declared abstract and has to be implemented
by concrete Collection implementations.
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>Collection contains, or Integer.MAX_VALUE
if there are more than Integer.MAX_VALUE elements in this
Collection.