Class HugeLongLongDoubleMap


  • public final class HugeLongLongDoubleMap
    extends java.lang.Object
    map with two longs as keys and huge underlying storage, so it can store more than 2B values
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTo​(long key1, long key2, double value)  
      double getOrDefault​(long key1, long key2, double defaultValue)  
      boolean isEmpty()  
      void release()  
      void set​(long key1, long key2, double value)  
      long size()  
      java.lang.String toString()
      Convert the contents of this map to a human-friendly string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HugeLongLongDoubleMap

        public HugeLongLongDoubleMap()
        New instance with sane defaults.
      • HugeLongLongDoubleMap

        public HugeLongLongDoubleMap​(long expectedElements)
        New instance with sane defaults.
    • Method Detail

      • set

        public void set​(long key1,
                        long key2,
                        double value)
      • addTo

        public void addTo​(long key1,
                          long key2,
                          double value)
      • getOrDefault

        public double getOrDefault​(long key1,
                                   long key2,
                                   double defaultValue)
      • size

        public long size()
      • isEmpty

        public boolean isEmpty()
      • release

        public void release()
      • toString

        public java.lang.String toString()
        Convert the contents of this map to a human-friendly string.
        Overrides:
        toString in class java.lang.Object