⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tobjecthashingstrategy.java

📁 这是一个matlab的java实现。里面有许多内容。请大家慢慢捉摸。
💻 JAVA
字号:
// Copyright (c) 2002, Eric D. Friedman All Rights Reserved.package gnu.trove;import java.io.Serializable;/** * Interface to support pluggable hashing strategies in maps and sets. * Implementors can use this interface to make the trove hashing * algorithms use object values, values provided by the java runtime, * or a custom strategy when computing hashcodes. *  * Created: Sat Aug 17 10:52:32 2002 * * @author Eric Friedman * @version $Id: TObjectHashingStrategy.java,v 1.1.1.1 2003/07/14 19:36:04 mccallum Exp $ */public interface TObjectHashingStrategy extends Serializable {        /**     * Computes a hash code for the specified object.  Implementors     * can use the object's own <tt>hashCode</tt> method, the Java     * runtime's <tt>identityHashCode</tt>, or a custom scheme.     *      * @param object for which the hashcode is to be computed     * @return the hashCode     */    public int computeHashCode(Object o);    /**     * Compares o1 and o2 for equality.  Strategy implementors may use     * the objects' own equals() methods, compare object references,     * or implement some custom scheme.     *     * @param o1 an <code>Object</code> value     * @param o2 an <code>Object</code> value     * @return true if the objects are equal according to this strategy.     */    public boolean equals(Object o1, Object o2);} // TObjectHashingStrategy

⌨️ 快捷键说明

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