datatransferobject.java

来自「电子地图服务器,搭建自己的地图服务」· Java 代码 · 共 62 行

JAVA
62
字号
/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org.  All rights reserved.
 * This code is licensed under the GPL 2.0 license, availible at the root
 * application directory.
 */

/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org.  All rights reserved.
 * This code is licensed under the GPL 2.0 license, availible at the root
 * application directory.
 */
package org.vfny.geoserver.global.dto;


/**
 * Marker used to indicate a public "Deep Copy" clone implementation.
 *
 * <p>
 * This is intended to be used to provide a known interface for data structures
 * to recursively clone or test equality through data structures such as Maps
 * or Lists.
 * </p>
 *
 * @author dzwiers, Refractions Research, Inc.
 * @version $Id: DataTransferObject.java 6326 2007-03-15 18:36:40Z jdeolive $
 *
 * @see java.util.Map
 * @see java.util.List
 */
public interface DataTransferObject extends Cloneable {
    /**
     * Implement clone as a Deep Copy.
     *
     * <p>
     * Create a clone of this object and return it.
     * </p>
     *
     * @return A new DataStructure which is a copy of this DataStructure.
     *
     * @see java.lang.Object#clone()
     */
    Object clone();

    /**
     * Compares the equality of the two objects.
     *
     * @param obj The object to checked for equivalence.
     *
     * @return <code>true</code> when the objects are the same.
     *
     * @see java.lang.Object#equals(java.lang.Object)
     */
    boolean equals(Object other);

    /**
     * DOCUMENT ME!
     *
     * @return hasCode for this Object
     *
     * @see java.lang.Object#hashCode()
     */
    int hashCode();
}

⌨️ 快捷键说明

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