4a37bc94bb3d0000f1b99f246e6595948740beed
[jalview.git] / src / vamsas / objects / simple / Object.java
1 /**\r
2  * Object.java\r
3  *\r
4  * This file was auto-generated from WSDL\r
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
6  */\r
7 \r
8 /*\r
9  * Jalview - A Sequence Alignment Editor and Viewer\r
10  * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
11  *\r
12  * This program is free software; you can redistribute it and/or\r
13  * modify it under the terms of the GNU General Public License\r
14  * as published by the Free Software Foundation; either version 2\r
15  * of the License, or (at your option) any later version.\r
16  *\r
17  * This program is distributed in the hope that it will be useful,\r
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
20  * GNU General Public License for more details.\r
21  *\r
22  * You should have received a copy of the GNU General Public License\r
23  * along with this program; if not, write to the Free Software\r
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
25  */\r
26 package vamsas.objects.simple;\r
27 \r
28 public abstract class Object\r
29     implements java.io.Serializable\r
30 {\r
31   private java.lang.Object __equalsCalc = null;\r
32   private boolean __hashCodeCalc = false;\r
33 \r
34   public Object()\r
35   {\r
36   }\r
37 \r
38   public synchronized boolean equals(java.lang.Object obj)\r
39   {\r
40     if (! (obj instanceof Object))\r
41     {\r
42       return false;\r
43     }\r
44 \r
45     //Object other = (Object) obj;\r
46 \r
47     if (obj == null)\r
48     {\r
49       return false;\r
50     }\r
51 \r
52     if (this == obj)\r
53     {\r
54       return true;\r
55     }\r
56 \r
57     if (__equalsCalc != null)\r
58     {\r
59       return (__equalsCalc == obj);\r
60     }\r
61 \r
62     __equalsCalc = obj;\r
63 \r
64     boolean _equals;\r
65     _equals = true;\r
66     __equalsCalc = null;\r
67 \r
68     return _equals;\r
69   }\r
70 \r
71   public synchronized int hashCode()\r
72   {\r
73     if (__hashCodeCalc)\r
74     {\r
75       return 0;\r
76     }\r
77 \r
78     __hashCodeCalc = true;\r
79 \r
80     int _hashCode = 1;\r
81     __hashCodeCalc = false;\r
82 \r
83     return _hashCode;\r
84   }\r
85 }\r