Class SingletonImmutableList<E>

All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, List<E>, RandomAccess, SequencedCollection<E>

final class SingletonImmutableList<E> extends ImmutableList<E>
Implementation of ImmutableList with exactly one element.
  • Field Details

    • element

      final transient E element
  • Constructor Details

    • SingletonImmutableList

      SingletonImmutableList(E element)
  • Method Details