01: package prefuse.util.collections;
02:
03: import java.util.Iterator;
04:
05: /**
06: * Sorted map that maps from an Object key to an int value.
07: *
08: * @author <a href="http://jheer.org">jeffrey heer</a>
09: */
10: public interface ObjectIntSortedMap extends IntSortedMap {
11:
12: public static final Object MAX_KEY = new Object();
13: public static final Object MIN_KEY = new Object();
14:
15: public Object firstKey();
16:
17: public Object lastKey();
18:
19: public boolean containsKey(Object key);
20:
21: public IntIterator valueRangeIterator(Object fromKey,
22: boolean fromInc, Object toKey, boolean toInc);
23:
24: public Iterator keyIterator();
25:
26: public Iterator keyRangeIterator(Object fromKey, boolean fromInc,
27: Object toKey, boolean toInc);
28:
29: public int get(Object key);
30:
31: public int remove(Object key);
32:
33: public int remove(Object key, int val);
34:
35: public int put(Object key, int value);
36:
37: } // end of interface ObjectIntSortedMap
|