Interface Long2IntMap.FastEntrySet

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void fastForEach​(java.util.function.Consumer<? super Long2IntMap.Entry> consumer)
      Iterates quickly over this entry set; the iteration might happen always on the same entry instance, suitably mutated.
      ObjectIterator<Long2IntMap.Entry> fastIterator()
      Returns a fast iterator over this entry set; the iterator might return always the same entry instance, suitably mutated.
      • 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, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
    • Method Detail

      • fastIterator

        ObjectIterator<Long2IntMap.Entry> fastIterator()
        Returns a fast iterator over this entry set; the iterator might return always the same entry instance, suitably mutated.
        Returns:
        a fast iterator over this entry set; the iterator might return always the same Map.Entry instance, suitably mutated.
      • fastForEach

        default void fastForEach​(java.util.function.Consumer<? super Long2IntMap.Entry> consumer)
        Iterates quickly over this entry set; the iteration might happen always on the same entry instance, suitably mutated.

        This default implementation just delegates to Iterable.forEach(Consumer).

        Parameters:
        consumer - a consumer that will by applied to the entries of this set; the entries might be represented by the same entry instance, suitably mutated.
        Since:
        8.1.0