*/
package vamsas.objects.simple;
-public class Alignment extends vamsas.objects.simple.Object implements
- java.io.Serializable
+public class Alignment extends vamsas.objects.simple.Object
+ implements java.io.Serializable
{
private java.lang.String gapchar;
private java.lang.Object __equalsCalc = null;
+ @Override
public synchronized boolean equals(java.lang.Object obj)
{
+ if (obj == null)
+ {
+ return false;
+ }
if (!(obj instanceof Alignment))
+ {
return false;
+ }
Alignment other = (Alignment) obj;
- if (obj == null)
- return false;
if (this == obj)
+ {
return true;
+ }
if (__equalsCalc != null)
{
return (__equalsCalc == obj);
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj)
- && ((this.gapchar == null && other.getGapchar() == null) || (this.gapchar != null && this.gapchar
- .equals(other.getGapchar())))
- && ((this.method == null && other.getMethod() == null) || (this.method != null && java.util.Arrays
- .equals(this.method, other.getMethod())))
- && ((this.seqs == null && other.getSeqs() == null) || (this.seqs != null && this.seqs
- .equals(other.getSeqs())));
+ && ((this.gapchar == null && other.getGapchar() == null)
+ || (this.gapchar != null
+ && this.gapchar.equals(other.getGapchar())))
+ && ((this.method == null && other.getMethod() == null)
+ || (this.method != null && java.util.Arrays
+ .equals(this.method, other.getMethod())))
+ && ((this.seqs == null && other.getSeqs() == null)
+ || (this.seqs != null
+ && this.seqs.equals(other.getSeqs())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
+ @Override
public synchronized int hashCode()
{
if (__hashCodeCalc)
}
if (getMethod() != null)
{
- for (int i = 0; i < java.lang.reflect.Array.getLength(getMethod()); i++)
+ for (int i = 0; i < java.lang.reflect.Array
+ .getLength(getMethod()); i++)
{
java.lang.Object obj = java.lang.reflect.Array.get(getMethod(), i);
if (obj != null && !obj.getClass().isArray())