hashtable.java

来自「BOOK:Beginning Algorithms Code Example」· Java 代码 · 共 30 行

JAVA
30
字号
package com.wrox.algorithms.hashing;/** * Generic interface for hash tables. * */public interface Hashtable {    /**     * Adds a value to the hash table.     *     * @param value The value to add.     */    public void add(Object value);    /**     * Determines if the hash table contains a specified value.     *     * @param value The value for which to search.     * @return <code>true</code> if the value is found; otherwise <code>false</code>.     */    public boolean contains(Object value);    /**     * Obtains the number of values in the hash table.     *     * @return The number of value sin the hash table.     */    public int size();}

⌨️ 快捷键说明

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