update author list in license for (JAL-826)
[jalview.git] / src / vamsas / objects / simple / WsJobId.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3  * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
4  * 
5  * This file is part of Jalview.
6  * 
7  * Jalview is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License 
9  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
10  * 
11  * Jalview is distributed in the hope that it will be useful, but 
12  * WITHOUT ANY WARRANTY; without even the implied warranty 
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14  * PURPOSE.  See the GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 package vamsas.objects.simple;
19
20 public class WsJobId implements java.io.Serializable
21 {
22   private java.lang.String jobId;
23
24   private int status;
25
26   public WsJobId()
27   {
28   }
29
30   public WsJobId(java.lang.String jobId, int status)
31   {
32     this.jobId = jobId;
33     this.status = status;
34   }
35
36   /**
37    * Gets the jobId value for this WsJobId.
38    * 
39    * @return jobId
40    */
41   public java.lang.String getJobId()
42   {
43     return jobId;
44   }
45
46   /**
47    * Sets the jobId value for this WsJobId.
48    * 
49    * @param jobId
50    */
51   public void setJobId(java.lang.String jobId)
52   {
53     this.jobId = jobId;
54   }
55
56   /**
57    * Gets the status value for this WsJobId.
58    * 
59    * @return status
60    */
61   public int getStatus()
62   {
63     return status;
64   }
65
66   /**
67    * Sets the status value for this WsJobId.
68    * 
69    * @param status
70    */
71   public void setStatus(int status)
72   {
73     this.status = status;
74   }
75
76   private java.lang.Object __equalsCalc = null;
77
78   public synchronized boolean equals(java.lang.Object obj)
79   {
80     if (!(obj instanceof WsJobId))
81       return false;
82     WsJobId other = (WsJobId) obj;
83     if (obj == null)
84       return false;
85     if (this == obj)
86       return true;
87     if (__equalsCalc != null)
88     {
89       return (__equalsCalc == obj);
90     }
91     __equalsCalc = obj;
92     boolean _equals;
93     _equals = true
94             && ((this.jobId == null && other.getJobId() == null) || (this.jobId != null && this.jobId
95                     .equals(other.getJobId())))
96             && this.status == other.getStatus();
97     __equalsCalc = null;
98     return _equals;
99   }
100
101   private boolean __hashCodeCalc = false;
102
103   public synchronized int hashCode()
104   {
105     if (__hashCodeCalc)
106     {
107       return 0;
108     }
109     __hashCodeCalc = true;
110     int _hashCode = 1;
111     if (getJobId() != null)
112     {
113       _hashCode += getJobId().hashCode();
114     }
115     _hashCode += getStatus();
116     __hashCodeCalc = false;
117     return _hashCode;
118   }
119
120 }