Class ImmutableMultimap.Values<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<V>, java.util.Collection<V>
    Enclosing class:
    ImmutableMultimap<K,​V>

    private static final class ImmutableMultimap.Values<K,​V>
    extends ImmutableCollection<V>
    • Method Detail

      • contains

        public boolean contains​(@CheckForNull
                                java.lang.Object object)
        Specified by:
        contains in interface java.util.Collection<K>
        Specified by:
        contains in class ImmutableCollection<V>
      • iterator

        public UnmodifiableIterator<V> iterator()
        Description copied from class: ImmutableCollection
        Returns an unmodifiable iterator across the elements in this collection.
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
        Specified by:
        iterator in class ImmutableCollection<V>
      • copyIntoArray

        int copyIntoArray​(java.lang.Object[] dst,
                          int offset)
        Description copied from class: ImmutableCollection
        Copies the contents of this immutable collection into the specified array at the specified offset. Returns offset + size().
        Overrides:
        copyIntoArray in class ImmutableCollection<V>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<K>
        Specified by:
        size in class java.util.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>