1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package de.bea.domingo;
24
25 import java.io.Serializable;
26
27 /***
28 * Base interface for all concrete notes interfaces.
29 *
30 * <p>The Base class defines methods that are common to all the classes.
31 * User code should not directly access the Base class.</p>
32 *
33 * @author <a href=mailto:kriede@users.sourceforge.net>Kurt Riede</a>
34 */
35 public interface DBase extends Serializable {
36
37 /***
38 * Returns a short description of an instance.
39 *
40 * @return short description of an instance
41 */
42 String toString();
43
44 /***
45 * Indicates whether some other object is "equal to" this one.
46 *
47 * @param object the reference object with which to compare.
48 * @return <code>true</code> if this object is the same as the object
49 * argument; <code>false</code> otherwise.
50 * @see #hashCode()
51 * @see java.lang.Object#hashCode()
52 * @see java.lang.Object#equals(java.lang.Object)
53 * @see java.util.Hashtable
54 */
55 boolean equals(Object object);
56
57 /***
58 * Returns a hash code value for the object.
59 *
60 * @return a hash code value for this object.
61 * @see #equals(java.lang.Object)
62 * @see java.lang.Object#hashCode()
63 * @see java.lang.Object#equals(java.lang.Object)
64 * @see java.util.Hashtable
65 */
66 int hashCode();
67 }