hashable.java

来自「Data StructuresAnd Algorithm Analysis In」· Java 代码 · 共 17 行

JAVA
17
字号
    package DataStructures;

    /**
     * Protocol for Hashable objects.
     * @author Mark Allen Weiss
     */
    public interface Hashable
    {
        /**
         * Compute a hash function for this object.
         * @param tableSize the hash table size.
         * @return (deterministically) a number between
         *     0 and tableSize-1, distributed equitably.
         */
        int hash( int tableSize );
    }

⌨️ 快捷键说明

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