Class AbstractProtobufList<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
com.google.protobuf.AbstractProtobufList<E>
All Implemented Interfaces:
Internal.ProtobufList<E>, Iterable<E>, Collection<E>, List<E>, RandomAccess, SequencedCollection<E>
Direct Known Subclasses:
BooleanArrayList, DoubleArrayList, FloatArrayList, IntArrayList, LazyStringArrayList, LongArrayList, ProtobufArrayList

abstract class AbstractProtobufList<E> extends AbstractList<E> implements Internal.ProtobufList<E>
An abstract implementation of Internal.ProtobufList which manages mutability semantics. All mutate methods must check if the list is mutable before proceeding. Subclasses must invoke ensureIsMutable() manually when overriding those methods.

This implementation assumes all subclasses are array based, supporting random access.