JAL-1925 update source version in license
[jalview.git] / src / vamsas / objects / simple / Result.java
index fbcfddf..2434716 100755 (executable)
@@ -1,43 +1,57 @@
-/**
- * Result.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2)
+ * Copyright (C) 2015 The Jalview Authors
+ * 
+ * This file is part of Jalview.
+ * 
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License 
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *  
+ * Jalview is distributed in the hope that it will be useful, but 
+ * WITHOUT ANY WARRANTY; without even the implied warranty 
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+ * PURPOSE.  See the GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
-
 package vamsas.objects.simple;
 
-public class Result
-    implements java.io.Serializable
+public class Result implements java.io.Serializable
 {
   private boolean broken;
+
   private boolean failed;
+
   private boolean finished;
+
   private boolean invalid;
+
   private boolean jobFailed;
+
   private boolean queued;
+
   private boolean running;
+
   private boolean serverError;
+
   private int state;
+
   private java.lang.String status;
+
   private boolean suspended;
 
   public Result()
   {
   }
 
-  public Result(
-      boolean broken,
-      boolean failed,
-      boolean finished,
-      boolean invalid,
-      boolean jobFailed,
-      boolean queued,
-      boolean running,
-      boolean serverError,
-      int state,
-      java.lang.String status,
-      boolean suspended)
+  public Result(boolean broken, boolean failed, boolean finished,
+          boolean invalid, boolean jobFailed, boolean queued,
+          boolean running, boolean serverError, int state,
+          java.lang.String status, boolean suspended)
   {
     this.broken = broken;
     this.failed = failed;
@@ -54,7 +68,7 @@ public class Result
 
   /**
    * Gets the broken value for this Result.
-   *
+   * 
    * @return broken
    */
   public boolean isBroken()
@@ -64,7 +78,7 @@ public class Result
 
   /**
    * Sets the broken value for this Result.
-   *
+   * 
    * @param broken
    */
   public void setBroken(boolean broken)
@@ -74,7 +88,7 @@ public class Result
 
   /**
    * Gets the failed value for this Result.
-   *
+   * 
    * @return failed
    */
   public boolean isFailed()
@@ -84,7 +98,7 @@ public class Result
 
   /**
    * Sets the failed value for this Result.
-   *
+   * 
    * @param failed
    */
   public void setFailed(boolean failed)
@@ -94,7 +108,7 @@ public class Result
 
   /**
    * Gets the finished value for this Result.
-   *
+   * 
    * @return finished
    */
   public boolean isFinished()
@@ -104,7 +118,7 @@ public class Result
 
   /**
    * Sets the finished value for this Result.
-   *
+   * 
    * @param finished
    */
   public void setFinished(boolean finished)
@@ -114,7 +128,7 @@ public class Result
 
   /**
    * Gets the invalid value for this Result.
-   *
+   * 
    * @return invalid
    */
   public boolean isInvalid()
@@ -124,7 +138,7 @@ public class Result
 
   /**
    * Sets the invalid value for this Result.
-   *
+   * 
    * @param invalid
    */
   public void setInvalid(boolean invalid)
@@ -134,7 +148,7 @@ public class Result
 
   /**
    * Gets the jobFailed value for this Result.
-   *
+   * 
    * @return jobFailed
    */
   public boolean isJobFailed()
@@ -144,7 +158,7 @@ public class Result
 
   /**
    * Sets the jobFailed value for this Result.
-   *
+   * 
    * @param jobFailed
    */
   public void setJobFailed(boolean jobFailed)
@@ -154,7 +168,7 @@ public class Result
 
   /**
    * Gets the queued value for this Result.
-   *
+   * 
    * @return queued
    */
   public boolean isQueued()
@@ -164,7 +178,7 @@ public class Result
 
   /**
    * Sets the queued value for this Result.
-   *
+   * 
    * @param queued
    */
   public void setQueued(boolean queued)
@@ -174,7 +188,7 @@ public class Result
 
   /**
    * Gets the running value for this Result.
-   *
+   * 
    * @return running
    */
   public boolean isRunning()
@@ -184,7 +198,7 @@ public class Result
 
   /**
    * Sets the running value for this Result.
-   *
+   * 
    * @param running
    */
   public void setRunning(boolean running)
@@ -194,7 +208,7 @@ public class Result
 
   /**
    * Gets the serverError value for this Result.
-   *
+   * 
    * @return serverError
    */
   public boolean isServerError()
@@ -204,7 +218,7 @@ public class Result
 
   /**
    * Sets the serverError value for this Result.
-   *
+   * 
    * @param serverError
    */
   public void setServerError(boolean serverError)
@@ -214,7 +228,7 @@ public class Result
 
   /**
    * Gets the state value for this Result.
-   *
+   * 
    * @return state
    */
   public int getState()
@@ -224,7 +238,7 @@ public class Result
 
   /**
    * Sets the state value for this Result.
-   *
+   * 
    * @param state
    */
   public void setState(int state)
@@ -234,7 +248,7 @@ public class Result
 
   /**
    * Gets the status value for this Result.
-   *
+   * 
    * @return status
    */
   public java.lang.String getStatus()
@@ -244,7 +258,7 @@ public class Result
 
   /**
    * Sets the status value for this Result.
-   *
+   * 
    * @param status
    */
   public void setStatus(java.lang.String status)
@@ -254,7 +268,7 @@ public class Result
 
   /**
    * Gets the suspended value for this Result.
-   *
+   * 
    * @return suspended
    */
   public boolean isSuspended()
@@ -264,7 +278,7 @@ public class Result
 
   /**
    * Sets the suspended value for this Result.
-   *
+   * 
    * @param suspended
    */
   public void setSuspended(boolean suspended)
@@ -273,17 +287,19 @@ public class Result
   }
 
   private java.lang.Object __equalsCalc = null;
+
+  @Override
   public synchronized boolean equals(java.lang.Object obj)
   {
-    if (! (obj instanceof Result))
+    if (obj == null)
     {
       return false;
     }
-    Result other = (Result) obj;
-    if (obj == null)
+    if (!(obj instanceof Result))
     {
       return false;
     }
+    Result other = (Result) obj;
     if (this == obj)
     {
       return true;
@@ -294,25 +310,26 @@ public class Result
     }
     __equalsCalc = obj;
     boolean _equals;
-    _equals = true &&
-        this.broken == other.isBroken() &&
-        this.failed == other.isFailed() &&
-        this.finished == other.isFinished() &&
-        this.invalid == other.isInvalid() &&
-        this.jobFailed == other.isJobFailed() &&
-        this.queued == other.isQueued() &&
-        this.running == other.isRunning() &&
-        this.serverError == other.isServerError() &&
-        this.state == other.getState() &&
-        ( (this.status == null && other.getStatus() == null) ||
-         (this.status != null &&
-          this.status.equals(other.getStatus()))) &&
-        this.suspended == other.isSuspended();
+    _equals = true
+            && this.broken == other.isBroken()
+            && this.failed == other.isFailed()
+            && this.finished == other.isFinished()
+            && this.invalid == other.isInvalid()
+            && this.jobFailed == other.isJobFailed()
+            && this.queued == other.isQueued()
+            && this.running == other.isRunning()
+            && this.serverError == other.isServerError()
+            && this.state == other.getState()
+            && ((this.status == null && other.getStatus() == null) || (this.status != null && this.status
+                    .equals(other.getStatus())))
+            && this.suspended == other.isSuspended();
     __equalsCalc = null;
     return _equals;
   }
 
   private boolean __hashCodeCalc = false;
+
+  @Override
   public synchronized int hashCode()
   {
     if (__hashCodeCalc)
@@ -328,7 +345,8 @@ public class Result
     _hashCode += (isJobFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
     _hashCode += (isQueued() ? Boolean.TRUE : Boolean.FALSE).hashCode();
     _hashCode += (isRunning() ? Boolean.TRUE : Boolean.FALSE).hashCode();
-    _hashCode += (isServerError() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+    _hashCode += (isServerError() ? Boolean.TRUE : Boolean.FALSE)
+            .hashCode();
     _hashCode += getState();
     if (getStatus() != null)
     {