KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > common > util > CompositeID


1 /*
2  * Copyright 2004 Blandware (http://www.blandware.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package com.blandware.atleap.common.util;
17
18 import java.io.Serializable JavaDoc;
19
20 /**
21  * <p>Marker interface to distinguish between classes,
22  * which represent composite identifiers when generating ActionForm object</p>
23  * <p><a HREF="CompositeID.java.htm"><i>View Source</i></a></p>
24  *
25  * @author Sergey Zubtcovskii <a HREF="mailto:sergey.zubtcovskii@blandware.com">&lt;sergey.zubtcovskii@blandware.com&gt;</a>
26  * @version $Revision: 1.3 $ $Date: 2005/10/05 18:52:30 $
27  */

28 public interface CompositeID extends Serializable JavaDoc {
29
30     /**
31      * Overrided <code>equals</code> method from <code>java.lang.Object</code>
32      *
33      * @param anotherObject Object to compare with
34      * @return <code>True</code> if this identifier is equal to specified object and <code>false</code> otherwise
35      * @see Object#equals(Object)
36      */

37     public boolean equals(Object JavaDoc anotherObject);
38
39     /**
40      * Overrided <code>hashCode</code> method from <code>java.lang.Object</code>
41      *
42      * @return Hash code of this instance
43      * @see Object#hashCode()
44      */

45     public int hashCode();
46
47 }
48
Popular Tags