public static class Internal.ListAdapter<F,T> extends AbstractList<T>
List<T>
around a List<F>
.
Protobuf internal. Used in protobuf generated code only.Modifier and Type | Class and Description |
---|---|
static interface |
Internal.ListAdapter.Converter<F,T>
Convert individual elements of the List from F to T.
|
modCount
Constructor and Description |
---|
ListAdapter(List<F> fromList,
Internal.ListAdapter.Converter<F,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, subList
public ListAdapter(List<F> fromList, Internal.ListAdapter.Converter<F,T> converter)
public T get(int index)
AbstractList
public int size()
AbstractCollection
Integer.MAX_VALUE
elements, returns Integer.MAX_VALUE
.size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>