Class Internal.ListAdapter<F,T> (3.19.4)

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

NameDescription
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
NameDescription
fromListList<F>
converterConverter<F,T>

Methods

get(int index)

public T get(int index)
Parameter
NameDescription
indexint
Returns
TypeDescription
T
Overrides

size()

public int size()
Returns
TypeDescription
int
Overrides