final class ProtobufArrayList<E> extends AbstractProtobufList<E>
Internal.ProtobufList
for non-primitive and String
types.Modifier and Type | Field and Description |
---|---|
private static ProtobufArrayList<java.lang.Object> |
EMPTY_LIST |
private java.util.List<E> |
list |
DEFAULT_CAPACITY
Modifier | Constructor and Description |
---|---|
(package private) |
ProtobufArrayList() |
private |
ProtobufArrayList(java.util.List<E> list) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E element) |
static <E> ProtobufArrayList<E> |
emptyList() |
E |
get(int index) |
ProtobufArrayList<E> |
mutableCopyWithCapacity(int capacity)
Returns a mutable clone of this list with the specified capacity.
|
E |
remove(int index) |
E |
set(int index,
E element) |
int |
size() |
add, addAll, addAll, clear, ensureIsMutable, equals, hashCode, isModifiable, makeImmutable, remove, removeAll, retainAll
indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
contains, containsAll, isEmpty, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static final ProtobufArrayList<java.lang.Object> EMPTY_LIST
private final java.util.List<E> list
ProtobufArrayList()
private ProtobufArrayList(java.util.List<E> list)
public static <E> ProtobufArrayList<E> emptyList()
public ProtobufArrayList<E> mutableCopyWithCapacity(int capacity)
Internal.ProtobufList
public void add(int index, E element)
add
in interface java.util.List<E>
add
in class AbstractProtobufList<E>
public E get(int index)
public E remove(int index)
remove
in interface java.util.List<E>
remove
in class AbstractProtobufList<E>
public E set(int index, E element)
set
in interface java.util.List<E>
set
in class AbstractProtobufList<E>