Class HashMapIdId

All Implemented Interfaces:
OptimizableCollection, Sized, Composition

public final class HashMapIdId
extends Object
implements 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
      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()