Class IntMap

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class IntMap
    extends java.lang.Object
    implements java.lang.Cloneable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int NULL  
    • Constructor Summary

      Constructors 
      Constructor Description
      IntMap()  
      IntMap​(int tableOffset, int bufferSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      int[] getKeys()
      Gets the array of keys in this map, sorted in ascending order.
      int[][] getPairs()
      Gets the key/value pairs.
      int[][] getRanges()
      Gets the key/value ranges.
      int getSize()  
      int getValue​(int key)  
      void putValue​(int key, int value)  
      void removeValue​(int key)  
      • Methods inherited from class java.lang.Object

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

      • IntMap

        public IntMap()
      • IntMap

        public IntMap​(int tableOffset,
                      int bufferSize)
    • Method Detail

      • getSize

        public int getSize()
      • putValue

        public void putValue​(int key,
                             int value)
      • removeValue

        public void removeValue​(int key)
      • getValue

        public int getValue​(int key)
      • getKeys

        public int[] getKeys()
        Gets the array of keys in this map, sorted in ascending order.
        Returns:
        the array of keys in the map
      • getPairs

        public int[][] getPairs()
        Gets the key/value pairs. The array is sorted in ascending key order.
        Returns:
        the key/value pairs with pairs[i] = {key, value}
      • getRanges

        public int[][] getRanges()
        Gets the key/value ranges.
        Returns:
        ranges = {{keyMin, keyMax}, {valueMin, valueMax}}
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object