Class UnmodifiableArrayList<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.apache.calcite.util.UnmodifiableArrayList<E>
Type Parameters:
E - Element type
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, RandomAccess

public class UnmodifiableArrayList<E> extends AbstractList<E> implements RandomAccess
A view onto an array that cannot be modified by the client.

Since the array is not copied, modifications to the array will be reflected in the list.

Null elements are allowed.

Quick and low-memory, like Arrays.asList(Object[]), but unmodifiable.