Class RegularImmutableMap.Values<K,V>

All Implemented Interfaces:
Serializable, Iterable<V>, Collection<V>, List<V>, RandomAccess, SequencedCollection<V>
Enclosing class:
RegularImmutableMap<K,V>

private static final class RegularImmutableMap.Values<K,V> extends ImmutableList<V>
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public V get(int index)
    • size

      public int size()
      Specified by:
      size in interface Collection<K>
      Specified by:
      size in interface List<K>
      Specified by:
      size in class AbstractCollection<V>
    • isPartialView

      boolean isPartialView()
      Description copied from class: ImmutableCollection
      Returns true if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods. This is generally used to determine whether copyOf implementations should make an explicit copy to avoid memory leaks.
      Specified by:
      isPartialView in class ImmutableCollection<V>