gnu.kawa.util
Class RangeTable
java.lang.Object
gnu.kawa.util.RangeTable
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- EKeymap, 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.
Method Summary |
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 |
RangeTable
public RangeTable()
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)
copy
public RangeTable copy()
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object