Interface Short2CharMap.FastEntrySet

    • Method Detail

      • fastIterator

        ObjectIterator<Short2CharMap.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​(Consumer<? super Short2CharMap.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