stringmap.java
来自「c4.5 ID3 分类决策数 公用java包 share」· Java 代码 · 共 38 行
JAVA
38 行
package shared;
/** StringMap implements a general mapping/lookup class for strings. The strings
* may be mapped to any data type Elem. The mapping is accomplished using both a
* hash table and an array. The hash table is provided for speedy searches, and
* the array is provided for iteration.
*
* @author Dan Sommerfield 2/01/96 Initial revision (.h,.c)
*/
public class StringMap {
/** Constructor. The default constructor allows an optional parameter for an
* estimated size of the hash table.
*
* @param sizeHint The size of the hashtable.
*/
public StringMap(int sizeHint){}
/** Sets the mapping for an item, adding the mapping if the item is not currently in
* the table.
* @param name The name to be mapped.
* @param value The value to be mapped to.
*/
public void map(String name, OptionAccess value){}
/** Retrieves a mapping given the name and a reference in which to store the value.
* Returns TRUE if the mapping exists, false if it does not. No value is placed in
* the value reference if the mapping does not exist.
*
* @return TRUE if the mapping exists, FALSE if it does not.
* @param name Name being mapped.
* @param value The value to be found.
*/
public boolean get(String name, OptionAccess value){return true;}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?