# Interface Internal.ProtobufList&lt;E&gt; (3.19.4)

    public static interface Internal.ProtobufList<E> extends List<E>, RandomAccess

Extends [List](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) to add the capability to make the list immutable and inspect if it is
modifiable.

All implementations must support efficient random access.

## Implements

[List\<E\>](https://docs.oracle.com/javase/8/docs/api/java/util/List<E>.html), [RandomAccess](https://docs.oracle.com/javase/8/docs/api/java/util/RandomAccess.html)

| ## Type Parameter ||
|---|---|
| **Name** | **Description** |
| `E` |   |

## Methods

### isModifiable()

    public abstract boolean isModifiable()

Returns whether this list can be modified via the publicly accessible [List](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) methods.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### makeImmutable()

    public abstract void makeImmutable()

Makes this list immutable. All subsequent modifications will throw an UnsupportedOperationException.

### mutableCopyWithCapacity(int capacity)

    public abstract Internal.ProtobufList<E> mutableCopyWithCapacity(int capacity)

Returns a mutable clone of this list with the specified capacity.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `capacity` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Internal.ProtobufList<E>` |   |