public static class Internal.IntListAdapter<T> extends AbstractList<T>
List<T> around an IntList.
Protobuf internal. Used in protobuf generated code only.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Internal.IntListAdapter.IntConverter<T>
Convert individual elements of the List from int to T.
|
modCount| Constructor and Description |
|---|
IntListAdapter(Internal.IntList fromList,
Internal.IntListAdapter.IntConverter<T> converter) |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int index)
Returns the element at the specified position in this list.
|
int |
size()
Returns the number of elements in this collection.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListpublic IntListAdapter(Internal.IntList fromList, Internal.IntListAdapter.IntConverter<T> converter)
public T get(int index)
AbstractListpublic int size()
AbstractCollectionInteger.MAX_VALUE elements, returns Integer.MAX_VALUE.size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>