Class Object2IntHashMap.EntrySet

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.Map.Entry<K,​java.lang.Integer>>, java.util.Collection<java.util.Map.Entry<K,​java.lang.Integer>>, java.util.Set<java.util.Map.Entry<K,​java.lang.Integer>>
    Enclosing class:
    Object2IntHashMap<K>

    public final class Object2IntHashMap.EntrySet
    extends java.util.AbstractSet<java.util.Map.Entry<K,​java.lang.Integer>>
    Set of entries which can optionally cache iterators to avoid allocation.
    • Constructor Summary

      Constructors 
      Constructor Description
      EntrySet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      boolean contains​(java.lang.Object o)
      Object2IntHashMap.EntryIterator iterator()
      boolean removeIfInt​(ObjIntPredicate<? super K> filter)
      Removes all the elements of this collection that satisfy the given predicate.
      int size()
      java.lang.Object[] toArray()
      <T> T[] toArray​(T[] a)
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode, removeAll
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, containsAll, isEmpty, remove, retainAll, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        add, addAll, containsAll, isEmpty, remove, retainAll, spliterator
    • Constructor Detail

      • EntrySet

        public EntrySet()
    • Method Detail

      • iterator

        public Object2IntHashMap.EntryIterator iterator()
        Specified by:
        iterator in interface java.util.Collection<java.util.Map.Entry<K,​java.lang.Integer>>
        Specified by:
        iterator in interface java.lang.Iterable<java.util.Map.Entry<K,​java.lang.Integer>>
        Specified by:
        iterator in interface java.util.Set<java.util.Map.Entry<K,​java.lang.Integer>>
        Specified by:
        iterator in class java.util.AbstractCollection<java.util.Map.Entry<K,​java.lang.Integer>>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<java.util.Map.Entry<K,​java.lang.Integer>>
        Specified by:
        size in interface java.util.Set<java.util.Map.Entry<K,​java.lang.Integer>>
        Specified by:
        size in class java.util.AbstractCollection<java.util.Map.Entry<K,​java.lang.Integer>>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<java.util.Map.Entry<K,​java.lang.Integer>>
        Specified by:
        clear in interface java.util.Set<java.util.Map.Entry<K,​java.lang.Integer>>
        Overrides:
        clear in class java.util.AbstractCollection<java.util.Map.Entry<K,​java.lang.Integer>>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<java.util.Map.Entry<K,​java.lang.Integer>>
        Specified by:
        contains in interface java.util.Set<java.util.Map.Entry<K,​java.lang.Integer>>
        Overrides:
        contains in class java.util.AbstractCollection<java.util.Map.Entry<K,​java.lang.Integer>>
      • removeIfInt

        public boolean removeIfInt​(ObjIntPredicate<? super K> filter)
        Removes all the elements of this collection that satisfy the given predicate.
        Parameters:
        filter - a predicate which returns true for elements to be removed.
        Returns:
        true if any elements were removed.
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<java.util.Map.Entry<K,​java.lang.Integer>>
        Specified by:
        toArray in interface java.util.Set<java.util.Map.Entry<K,​java.lang.Integer>>
        Overrides:
        toArray in class java.util.AbstractCollection<java.util.Map.Entry<K,​java.lang.Integer>>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<java.util.Map.Entry<K,​java.lang.Integer>>
        Specified by:
        toArray in interface java.util.Set<java.util.Map.Entry<K,​java.lang.Integer>>
        Overrides:
        toArray in class java.util.AbstractCollection<java.util.Map.Entry<K,​java.lang.Integer>>