-/*\r
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)\r
- * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle\r
- * \r
- * This file is part of Jalview.\r
- * \r
- * Jalview is free software: you can redistribute it and/or\r
- * modify it under the terms of the GNU General Public License \r
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\r
- * \r
- * Jalview is distributed in the hope that it will be useful, but \r
- * WITHOUT ANY WARRANTY; without even the implied warranty \r
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR \r
- * PURPOSE. See the GNU General Public License for more details.\r
- * \r
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.\r
- */\r
-package uk.ac.ebi.picr.model;\r
-\r
-public class UPEntry implements java.io.Serializable\r
-{\r
- private java.lang.String CRC64;\r
-\r
- private java.lang.String UPI;\r
-\r
- private uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences;\r
-\r
- private uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences;\r
-\r
- private java.lang.String sequence;\r
-\r
- private java.util.Calendar timestamp;\r
-\r
- public UPEntry()\r
- {\r
- }\r
-\r
- public UPEntry(java.lang.String CRC64, java.lang.String UPI,\r
- uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences,\r
- uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences,\r
- java.lang.String sequence, java.util.Calendar timestamp)\r
- {\r
- this.CRC64 = CRC64;\r
- this.UPI = UPI;\r
- this.identicalCrossReferences = identicalCrossReferences;\r
- this.logicalCrossReferences = logicalCrossReferences;\r
- this.sequence = sequence;\r
- this.timestamp = timestamp;\r
- }\r
-\r
- /**\r
- * Gets the CRC64 value for this UPEntry.\r
- * \r
- * @return CRC64\r
- */\r
- public java.lang.String getCRC64()\r
- {\r
- return CRC64;\r
- }\r
-\r
- /**\r
- * Sets the CRC64 value for this UPEntry.\r
- * \r
- * @param CRC64\r
- */\r
- public void setCRC64(java.lang.String CRC64)\r
- {\r
- this.CRC64 = CRC64;\r
- }\r
-\r
- /**\r
- * Gets the UPI value for this UPEntry.\r
- * \r
- * @return UPI\r
- */\r
- public java.lang.String getUPI()\r
- {\r
- return UPI;\r
- }\r
-\r
- /**\r
- * Sets the UPI value for this UPEntry.\r
- * \r
- * @param UPI\r
- */\r
- public void setUPI(java.lang.String UPI)\r
- {\r
- this.UPI = UPI;\r
- }\r
-\r
- /**\r
- * Gets the identicalCrossReferences value for this UPEntry.\r
- * \r
- * @return identicalCrossReferences\r
- */\r
- public uk.ac.ebi.picr.model.CrossReference[] getIdenticalCrossReferences()\r
- {\r
- return identicalCrossReferences;\r
- }\r
-\r
- /**\r
- * Sets the identicalCrossReferences value for this UPEntry.\r
- * \r
- * @param identicalCrossReferences\r
- */\r
- public void setIdenticalCrossReferences(\r
- uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences)\r
- {\r
- this.identicalCrossReferences = identicalCrossReferences;\r
- }\r
-\r
- public uk.ac.ebi.picr.model.CrossReference getIdenticalCrossReferences(\r
- int i)\r
- {\r
- return this.identicalCrossReferences[i];\r
- }\r
-\r
- public void setIdenticalCrossReferences(int i,\r
- uk.ac.ebi.picr.model.CrossReference _value)\r
- {\r
- this.identicalCrossReferences[i] = _value;\r
- }\r
-\r
- /**\r
- * Gets the logicalCrossReferences value for this UPEntry.\r
- * \r
- * @return logicalCrossReferences\r
- */\r
- public uk.ac.ebi.picr.model.CrossReference[] getLogicalCrossReferences()\r
- {\r
- return logicalCrossReferences;\r
- }\r
-\r
- /**\r
- * Sets the logicalCrossReferences value for this UPEntry.\r
- * \r
- * @param logicalCrossReferences\r
- */\r
- public void setLogicalCrossReferences(\r
- uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences)\r
- {\r
- this.logicalCrossReferences = logicalCrossReferences;\r
- }\r
-\r
- public uk.ac.ebi.picr.model.CrossReference getLogicalCrossReferences(int i)\r
- {\r
- return this.logicalCrossReferences[i];\r
- }\r
-\r
- public void setLogicalCrossReferences(int i,\r
- uk.ac.ebi.picr.model.CrossReference _value)\r
- {\r
- this.logicalCrossReferences[i] = _value;\r
- }\r
-\r
- /**\r
- * Gets the sequence value for this UPEntry.\r
- * \r
- * @return sequence\r
- */\r
- public java.lang.String getSequence()\r
- {\r
- return sequence;\r
- }\r
-\r
- /**\r
- * Sets the sequence value for this UPEntry.\r
- * \r
- * @param sequence\r
- */\r
- public void setSequence(java.lang.String sequence)\r
- {\r
- this.sequence = sequence;\r
- }\r
-\r
- /**\r
- * Gets the timestamp value for this UPEntry.\r
- * \r
- * @return timestamp\r
- */\r
- public java.util.Calendar getTimestamp()\r
- {\r
- return timestamp;\r
- }\r
-\r
- /**\r
- * Sets the timestamp value for this UPEntry.\r
- * \r
- * @param timestamp\r
- */\r
- public void setTimestamp(java.util.Calendar timestamp)\r
- {\r
- this.timestamp = timestamp;\r
- }\r
-\r
- private java.lang.Object __equalsCalc = null;\r
-\r
- public synchronized boolean equals(java.lang.Object obj)\r
- {\r
- if (!(obj instanceof UPEntry))\r
- return false;\r
- UPEntry other = (UPEntry) obj;\r
- if (obj == null)\r
- return false;\r
- if (this == obj)\r
- return true;\r
- if (__equalsCalc != null)\r
- {\r
- return (__equalsCalc == obj);\r
- }\r
- __equalsCalc = obj;\r
- boolean _equals;\r
- _equals = true\r
- && ((this.CRC64 == null && other.getCRC64() == null) || (this.CRC64 != null && this.CRC64\r
- .equals(other.getCRC64())))\r
- && ((this.UPI == null && other.getUPI() == null) || (this.UPI != null && this.UPI\r
- .equals(other.getUPI())))\r
- && ((this.identicalCrossReferences == null && other\r
- .getIdenticalCrossReferences() == null) || (this.identicalCrossReferences != null && java.util.Arrays\r
- .equals(this.identicalCrossReferences,\r
- other.getIdenticalCrossReferences())))\r
- && ((this.logicalCrossReferences == null && other\r
- .getLogicalCrossReferences() == null) || (this.logicalCrossReferences != null && java.util.Arrays\r
- .equals(this.logicalCrossReferences,\r
- other.getLogicalCrossReferences())))\r
- && ((this.sequence == null && other.getSequence() == null) || (this.sequence != null && this.sequence\r
- .equals(other.getSequence())))\r
- && ((this.timestamp == null && other.getTimestamp() == null) || (this.timestamp != null && this.timestamp\r
- .equals(other.getTimestamp())));\r
- __equalsCalc = null;\r
- return _equals;\r
- }\r
-\r
- private boolean __hashCodeCalc = false;\r
-\r
- public synchronized int hashCode()\r
- {\r
- if (__hashCodeCalc)\r
- {\r
- return 0;\r
- }\r
- __hashCodeCalc = true;\r
- int _hashCode = 1;\r
- if (getCRC64() != null)\r
- {\r
- _hashCode += getCRC64().hashCode();\r
- }\r
- if (getUPI() != null)\r
- {\r
- _hashCode += getUPI().hashCode();\r
- }\r
- if (getIdenticalCrossReferences() != null)\r
- {\r
- for (int i = 0; i < java.lang.reflect.Array\r
- .getLength(getIdenticalCrossReferences()); i++)\r
- {\r
- java.lang.Object obj = java.lang.reflect.Array.get(\r
- getIdenticalCrossReferences(), i);\r
- if (obj != null && !obj.getClass().isArray())\r
- {\r
- _hashCode += obj.hashCode();\r
- }\r
- }\r
- }\r
- if (getLogicalCrossReferences() != null)\r
- {\r
- for (int i = 0; i < java.lang.reflect.Array\r
- .getLength(getLogicalCrossReferences()); i++)\r
- {\r
- java.lang.Object obj = java.lang.reflect.Array.get(\r
- getLogicalCrossReferences(), i);\r
- if (obj != null && !obj.getClass().isArray())\r
- {\r
- _hashCode += obj.hashCode();\r
- }\r
- }\r
- }\r
- if (getSequence() != null)\r
- {\r
- _hashCode += getSequence().hashCode();\r
- }\r
- if (getTimestamp() != null)\r
- {\r
- _hashCode += getTimestamp().hashCode();\r
- }\r
- __hashCodeCalc = false;\r
- return _hashCode;\r
- }\r
-\r
-}\r
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ 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 uk.ac.ebi.picr.model;
+
+public class UPEntry implements java.io.Serializable
+{
+ private java.lang.String CRC64;
+
+ private java.lang.String UPI;
+
+ private uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences;
+
+ private uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences;
+
+ private java.lang.String sequence;
+
+ private java.util.Calendar timestamp;
+
+ public UPEntry()
+ {
+ }
+
+ public UPEntry(java.lang.String CRC64, java.lang.String UPI,
+ uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences,
+ uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences,
+ java.lang.String sequence, java.util.Calendar timestamp)
+ {
+ this.CRC64 = CRC64;
+ this.UPI = UPI;
+ this.identicalCrossReferences = identicalCrossReferences;
+ this.logicalCrossReferences = logicalCrossReferences;
+ this.sequence = sequence;
+ this.timestamp = timestamp;
+ }
+
+ /**
+ * Gets the CRC64 value for this UPEntry.
+ *
+ * @return CRC64
+ */
+ public java.lang.String getCRC64()
+ {
+ return CRC64;
+ }
+
+ /**
+ * Sets the CRC64 value for this UPEntry.
+ *
+ * @param CRC64
+ */
+ public void setCRC64(java.lang.String CRC64)
+ {
+ this.CRC64 = CRC64;
+ }
+
+ /**
+ * Gets the UPI value for this UPEntry.
+ *
+ * @return UPI
+ */
+ public java.lang.String getUPI()
+ {
+ return UPI;
+ }
+
+ /**
+ * Sets the UPI value for this UPEntry.
+ *
+ * @param UPI
+ */
+ public void setUPI(java.lang.String UPI)
+ {
+ this.UPI = UPI;
+ }
+
+ /**
+ * Gets the identicalCrossReferences value for this UPEntry.
+ *
+ * @return identicalCrossReferences
+ */
+ public uk.ac.ebi.picr.model.CrossReference[] getIdenticalCrossReferences()
+ {
+ return identicalCrossReferences;
+ }
+
+ /**
+ * Sets the identicalCrossReferences value for this UPEntry.
+ *
+ * @param identicalCrossReferences
+ */
+ public void setIdenticalCrossReferences(
+ uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences)
+ {
+ this.identicalCrossReferences = identicalCrossReferences;
+ }
+
+ public uk.ac.ebi.picr.model.CrossReference getIdenticalCrossReferences(
+ int i)
+ {
+ return this.identicalCrossReferences[i];
+ }
+
+ public void setIdenticalCrossReferences(int i,
+ uk.ac.ebi.picr.model.CrossReference _value)
+ {
+ this.identicalCrossReferences[i] = _value;
+ }
+
+ /**
+ * Gets the logicalCrossReferences value for this UPEntry.
+ *
+ * @return logicalCrossReferences
+ */
+ public uk.ac.ebi.picr.model.CrossReference[] getLogicalCrossReferences()
+ {
+ return logicalCrossReferences;
+ }
+
+ /**
+ * Sets the logicalCrossReferences value for this UPEntry.
+ *
+ * @param logicalCrossReferences
+ */
+ public void setLogicalCrossReferences(
+ uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences)
+ {
+ this.logicalCrossReferences = logicalCrossReferences;
+ }
+
+ public uk.ac.ebi.picr.model.CrossReference getLogicalCrossReferences(int i)
+ {
+ return this.logicalCrossReferences[i];
+ }
+
+ public void setLogicalCrossReferences(int i,
+ uk.ac.ebi.picr.model.CrossReference _value)
+ {
+ this.logicalCrossReferences[i] = _value;
+ }
+
+ /**
+ * Gets the sequence value for this UPEntry.
+ *
+ * @return sequence
+ */
+ public java.lang.String getSequence()
+ {
+ return sequence;
+ }
+
+ /**
+ * Sets the sequence value for this UPEntry.
+ *
+ * @param sequence
+ */
+ public void setSequence(java.lang.String sequence)
+ {
+ this.sequence = sequence;
+ }
+
+ /**
+ * Gets the timestamp value for this UPEntry.
+ *
+ * @return timestamp
+ */
+ public java.util.Calendar getTimestamp()
+ {
+ return timestamp;
+ }
+
+ /**
+ * Sets the timestamp value for this UPEntry.
+ *
+ * @param timestamp
+ */
+ public void setTimestamp(java.util.Calendar timestamp)
+ {
+ this.timestamp = timestamp;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+
+ @Override
+ public synchronized boolean equals(java.lang.Object obj)
+ {
+ if (obj == null)
+ {
+ return false;
+ }
+ if (!(obj instanceof UPEntry))
+ {
+ return false;
+ }
+ UPEntry other = (UPEntry) obj;
+ if (this == obj)
+ {
+ return true;
+ }
+ if (__equalsCalc != null)
+ {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true
+ && ((this.CRC64 == null && other.getCRC64() == null) || (this.CRC64 != null && this.CRC64
+ .equals(other.getCRC64())))
+ && ((this.UPI == null && other.getUPI() == null) || (this.UPI != null && this.UPI
+ .equals(other.getUPI())))
+ && ((this.identicalCrossReferences == null && other
+ .getIdenticalCrossReferences() == null) || (this.identicalCrossReferences != null && java.util.Arrays
+ .equals(this.identicalCrossReferences,
+ other.getIdenticalCrossReferences())))
+ && ((this.logicalCrossReferences == null && other
+ .getLogicalCrossReferences() == null) || (this.logicalCrossReferences != null && java.util.Arrays
+ .equals(this.logicalCrossReferences,
+ other.getLogicalCrossReferences())))
+ && ((this.sequence == null && other.getSequence() == null) || (this.sequence != null && this.sequence
+ .equals(other.getSequence())))
+ && ((this.timestamp == null && other.getTimestamp() == null) || (this.timestamp != null && this.timestamp
+ .equals(other.getTimestamp())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+
+ @Override
+ public synchronized int hashCode()
+ {
+ if (__hashCodeCalc)
+ {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ if (getCRC64() != null)
+ {
+ _hashCode += getCRC64().hashCode();
+ }
+ if (getUPI() != null)
+ {
+ _hashCode += getUPI().hashCode();
+ }
+ if (getIdenticalCrossReferences() != null)
+ {
+ for (int i = 0; i < java.lang.reflect.Array
+ .getLength(getIdenticalCrossReferences()); i++)
+ {
+ java.lang.Object obj = java.lang.reflect.Array.get(
+ getIdenticalCrossReferences(), i);
+ if (obj != null && !obj.getClass().isArray())
+ {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getLogicalCrossReferences() != null)
+ {
+ for (int i = 0; i < java.lang.reflect.Array
+ .getLength(getLogicalCrossReferences()); i++)
+ {
+ java.lang.Object obj = java.lang.reflect.Array.get(
+ getLogicalCrossReferences(), i);
+ if (obj != null && !obj.getClass().isArray())
+ {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getSequence() != null)
+ {
+ _hashCode += getSequence().hashCode();
+ }
+ if (getTimestamp() != null)
+ {
+ _hashCode += getTimestamp().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+}