public static interface Internal.ProtobufList<E>
extends java.util.List<E>, java.util.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.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
void makeImmutable()
UnsupportedOperationException
.boolean isModifiable()
List
methods.Internal.ProtobufList<E> mutableCopyWithCapacity(int capacity)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.