public static interface Internal.ProtobufList<E> extends List<E>, RandomAccess
List
to add the capability to make the list immutable and inspect if it is modifiable.
All implementations must support efficient random access.
Modifier and Type | Method and Description |
---|---|
boolean |
isModifiable()
Returns whether this list can be modified via the publicly accessible
List methods. |
void |
makeImmutable()
Makes this list immutable.
|
Internal.ProtobufList<E> |
mutableCopyWithCapacity(int capacity)
Returns a mutable clone of this list with the specified capacity.
|
boolean isModifiable()
List
methods.void makeImmutable()
UnsupportedOperationException
.Internal.ProtobufList<E> mutableCopyWithCapacity(int capacity)