01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05:
06: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
07: * This code is licensed under the GPL 2.0 license, availible at the root
08: * application directory.
09: */
10: package org.vfny.geoserver.global.dto;
11:
12: /**
13: * Marker used to indicate a public "Deep Copy" clone implementation.
14: *
15: * <p>
16: * This is intended to be used to provide a known interface for data structures
17: * to recursively clone or test equality through data structures such as Maps
18: * or Lists.
19: * </p>
20: *
21: * @author dzwiers, Refractions Research, Inc.
22: * @version $Id: DataTransferObject.java 6326 2007-03-15 18:36:40Z jdeolive $
23: *
24: * @see java.util.Map
25: * @see java.util.List
26: */
27: public interface DataTransferObject extends Cloneable {
28: /**
29: * Implement clone as a Deep Copy.
30: *
31: * <p>
32: * Create a clone of this object and return it.
33: * </p>
34: *
35: * @return A new DataStructure which is a copy of this DataStructure.
36: *
37: * @see java.lang.Object#clone()
38: */
39: Object clone();
40:
41: /**
42: * Compares the equality of the two objects.
43: *
44: * @param obj The object to checked for equivalence.
45: *
46: * @return <code>true</code> when the objects are the same.
47: *
48: * @see java.lang.Object#equals(java.lang.Object)
49: */
50: boolean equals(Object other);
51:
52: /**
53: * DOCUMENT ME!
54: *
55: * @return hasCode for this Object
56: *
57: * @see java.lang.Object#hashCode()
58: */
59: int hashCode();
60: }
|