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

📄 tobjectidentityhashingstrategy.java

📁 这是一个matlab的java实现。里面有许多内容。请大家慢慢捉摸。
💻 JAVA
字号:
// Copyright (c) 2002, Eric D. Friedman All Rights Reserved.package gnu.trove;/** * This object hashing strategy uses the System.identityHashCode * method to provide identity hash codes.  These are identical to the * value produced by Object.hashCode(), even when the type of the * object being hashed overrides that method. *  * Created: Sat Aug 17 11:13:15 2002 * * @author Eric Friedman * @version $Id: TObjectIdentityHashingStrategy.java,v 1.1.1.1 2003/07/14 19:36:04 mccallum Exp $ */public final class TObjectIdentityHashingStrategy implements TObjectHashingStrategy {    /**     * Delegates hash code computation to the System.identityHashCode(Object) method.     *     * @param object for which the hashcode is to be computed     * @return the hashCode     */    public final int computeHashCode(Object object) {        return System.identityHashCode(object);    }    /**     * Compares object references for equality.     *     * @param o1 an <code>Object</code> value     * @param o2 an <code>Object</code> value     * @return true if o1 == o2     */    public final boolean equals(Object o1, Object o2) {        return o1 == o2;    }} // TObjectIdentityHashingStrategy

⌨️ 快捷键说明

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