Class MutableSingletonList<E>

  • All Implemented Interfaces:
    Iterable<E>, Collection<E>, List<E>

    public class MutableSingletonList<E>
    extends AbstractList<E>
    List that can contain maximum of one element. Does not allow null element to be added.