Schnittstelle Long2ShortMap.FastEntrySet

Alle Superschnittstellen:
Collection<Long2ShortMap.Entry>, ISizeProvider, Iterable<Long2ShortMap.Entry>, ObjectCollection<Long2ShortMap.Entry>, ObjectIterable<Long2ShortMap.Entry>, ObjectSet<Long2ShortMap.Entry>, Set<Long2ShortMap.Entry>
Alle bekannten Unterschnittstellen:
Long2ShortOrderedMap.FastOrderedSet, Long2ShortSortedMap.FastSortedSet
Umschließende Schnittstelle:
Long2ShortMap

public static interface Long2ShortMap.FastEntrySet extends ObjectSet<Long2ShortMap.Entry>
Fast Entry set that allows for a faster Entry Iterator by recycling the Entry Object and just exchanging 1 internal value
  • Methodendetails

    • fastIterator

      Fast iterator that recycles the given Entry object to improve speed and reduce object allocation
      Gibt zurück:
      a Recycling ObjectIterator of the given set
    • fastForEach

      default void fastForEach(Consumer<? super Long2ShortMap.Entry> action)
      Fast for each that recycles the given Entry object to improve speed and reduce object allocation
      Parameter:
      action - the action that should be applied to each given entry