Class NonNullElementWrapperList<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
com.google.gson.internal.NonNullElementWrapperList<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, RandomAccess

public class NonNullElementWrapperList<E> extends AbstractList<E> implements RandomAccess
List which wraps another List but prevents insertion of null elements. Methods which only perform checks with the element argument (e.g. contains(Object)) do not throw exceptions for null arguments.