Class HashMapIdId

java.lang.Object
one.microstream.collections.HashMapIdId
All Implemented Interfaces:
OptimizableCollection, Sized, Composition

public final class HashMapIdId
extends Object
implements Sized, OptimizableCollection, Composition
  • Constructor Details

  • Method Details

    • size

      public final long size()
      Specified by:
      size in interface Sized
    • isEmpty

      public final boolean isEmpty()
      Specified by:
      isEmpty in interface Sized
    • add

      public boolean add​(long key, long value)
    • put

      public boolean put​(long key, long value)
    • putGet

      public long putGet​(long key, long value)
    • addGet

      public long addGet​(long key, long value)
    • get

      public long get​(long key)
    • getIds

      public XList<Long> getIds()
    • iterateObjects

      public int iterateObjects​(_longProcedure procedure)
    • optimize

      public long optimize()
      Optimizes the internal storage and returns the remaining amount of entries.
      Specified by:
      optimize in interface OptimizableCollection
      Returns:
      the amount of entries after the optimization is been completed.
    • iterateIds

      public int iterateIds​(Consumer<? super Long> procedure)
    • iterateIds

      public int iterateIds​(_longProcedure procedure)
    • clear

      public void clear()