/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
- * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
+ * 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.
+ * 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/>.
+ * 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;
this.logicalCrossReferences = logicalCrossReferences;
}
- public uk.ac.ebi.picr.model.CrossReference getLogicalCrossReferences(int i)
+ public uk.ac.ebi.picr.model.CrossReference getLogicalCrossReferences(
+ int i)
{
return this.logicalCrossReferences[i];
}
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 (obj == null)
- return false;
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())));
+ _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)
for (int i = 0; i < java.lang.reflect.Array
.getLength(getIdenticalCrossReferences()); i++)
{
- java.lang.Object obj = java.lang.reflect.Array.get(
- getIdenticalCrossReferences(), i);
+ java.lang.Object obj = java.lang.reflect.Array
+ .get(getIdenticalCrossReferences(), i);
if (obj != null && !obj.getClass().isArray())
{
_hashCode += obj.hashCode();
for (int i = 0; i < java.lang.reflect.Array
.getLength(getLogicalCrossReferences()); i++)
{
- java.lang.Object obj = java.lang.reflect.Array.get(
- getLogicalCrossReferences(), i);
+ java.lang.Object obj = java.lang.reflect.Array
+ .get(getLogicalCrossReferences(), i);
if (obj != null && !obj.getClass().isArray())
{
_hashCode += obj.hashCode();