public static class Internal.ListAdapter<F,T> extends AbstractList<T>
Provides an immutable view of List
around a List
.
Protobuf internal. Used in protobuf generated code only.
Inheritance
java.lang.Object > java.util.AbstractCollection > AbstractList > Internal.ListAdapter<F,T>Type Parameters | |
---|---|
Name | Description |
F | |
T |
Constructors
ListAdapter(List<F> fromList, Internal.ListAdapter.Converter<F,T> converter)
public ListAdapter(List<F> fromList, Internal.ListAdapter.Converter<F,T> converter)
Parameters | |
---|---|
Name | Description |
fromList | List<F> |
converter | Converter<F,T> |
Methods
get(int index)
public T get(int index)
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
T |
size()
public int size()
Returns | |
---|---|
Type | Description |
int |