ProtobufList for non-primitive and String types.
| Modifier and Type | Field and Description |
|---|---|
| private static final ProtobufArrayList | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
index at which the specified element is to be inserted index, E element to be inserted element)Overrides com. Implements java. |
| public static <E> ProtobufArrayList | |
| public E | get(int
index of the element to return index)Implements abstract java. Implements java. |
| public ProtobufArrayList | mutableCopyWithCapacity(int capacity)
Implements com. |
| public E | remove(int
the index of the element to be removed index)Overrides com. Implements java. |
| public E | set(int
index of the element to replace index, E element to be stored at the specified position element)Overrides com. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| EMPTY_LIST | back to summary |
|---|---|
| private static final ProtobufArrayList<Object> EMPTY_LIST | |
| list | back to summary |
|---|---|
| private final List<E> list | |
| ProtobufArrayList | back to summary |
|---|---|
| pack-priv ProtobufArrayList() | |
| ProtobufArrayList | back to summary |
|---|---|
| private ProtobufArrayList(List<E> list) | |
| add | back to summary |
|---|---|
| public void add(int index, E element) Overrides com. Implements java. Doc from java. Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
| |
| emptyList | back to summary |
|---|---|
public static <E> ProtobufArrayList
| |
| get | back to summary |
|---|---|
| public E get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| mutableCopyWithCapacity | back to summary |
|---|---|
| public ProtobufArrayList Implements com. Doc from com. Returns a mutable clone of this list with the specified capacity.
| |
| remove | back to summary |
|---|---|
| public E remove(int index) Overrides com. Implements java. Doc from java. Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.
| |
| set | back to summary |
|---|---|
| public E set(int index, E element) Overrides com. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |