Package gnu.kawa.util

Class RangeTable

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    ReadTable

    public class RangeTable
    extends java.lang.Object
    implements java.lang.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 Summary

      Constructors 
      Constructor Description
      RangeTable()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      RangeTable copy()  
      java.lang.Object lookup​(int key, java.lang.Object defaultValue)  
      void remove​(int key)  
      void remove​(int lo, int hi)  
      void set​(int lo, int hi, java.lang.Object value)  
      void set​(int key, java.lang.Object value)  
      • Methods inherited from class java.lang.Object

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

      • RangeTable

        public RangeTable()
    • Method Detail

      • lookup

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

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

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

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

        public void remove​(int key)
      • clone

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