Class ImmutableSet.CachingAsList<E>

All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>
Direct Known Subclasses:
ImmutableMapEntrySet, ImmutableSet.Indexed, ImmutableSortedSet, IndexedImmutableSet, RegularImmutableSet
Enclosing class:
ImmutableSet<E>

abstract static class ImmutableSet.CachingAsList<E> extends ImmutableSet<E>
  • Field Details

  • Constructor Details

    • CachingAsList

      CachingAsList()
  • Method Details

    • asList

      public ImmutableList<E> asList()
      Description copied from class: ImmutableCollection
      Returns an ImmutableList containing the same elements, in the same order, as this collection.

      Performance note: in most cases this method can return quickly without actually copying anything. The exact circumstances under which the copy is performed are undefined and subject to change.

      Overrides:
      asList in class ImmutableCollection<E>
    • createAsList

      ImmutableList<E> createAsList()
    • writeReplace

      Object writeReplace()
      Overrides:
      writeReplace in class ImmutableSet<E>