Package gnu.kawa.util

Class RangeTable

  • All Implemented Interfaces:
    Cloneable
    Direct Known Subclasses:
    ReadTable

    public class RangeTable
    extends Object
    implements Cloneable
    Map integers to Object. Future implementaton will be optimized for ranges that map to the same value, but the current implementation is bad except for 0..127.
    • Constructor Detail

      • RangeTable

        public RangeTable()
    • Method Detail

      • lookup

        public Object lookup​(int key,
                             Object defaultValue)
      • set

        public void set​(int lo,
                        int hi,
                        Object value)
      • set

        public void set​(int key,
                        Object value)
      • remove

        public void remove​(int lo,
                           int hi)
      • remove

        public void remove​(int key)