doubleintsortedmap.java

来自「用applet实现很多应用小程序」· Java 代码 · 共 34 行

JAVA
34
字号
package prefuse.util.collections;


/**
 * Sorted map that maps from a double key to an int value.
 * 
 * @author <a href="http://jheer.org">jeffrey heer</a>
 */
public interface DoubleIntSortedMap extends IntSortedMap {

    public double firstKey();

    public double lastKey();

    public boolean containsKey(double key);
    
    public IntIterator valueRangeIterator(double fromKey, boolean fromInc, 
                                          double toKey,   boolean toInc);
    
    public LiteralIterator keyIterator();
    
    public LiteralIterator keyRangeIterator(double fromKey, boolean fromInc, 
                                            double toKey,   boolean toInc);

    public int get(double key);

    public int remove(double key);
    
    public int remove(double key, int value);

    public int put(double key, int value);
    
} // end of interface DoubleIntSortedMap

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?