4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
8 package vamsas.objects.simple;
10 public class Alignment extends vamsas.objects.simple.Object implements java.io.Serializable {
11 private java.lang.String gapchar;
12 private java.lang.String[] method;
13 private vamsas.objects.simple.SequenceSet seqs;
19 java.lang.String gapchar,
20 java.lang.String[] method,
21 vamsas.objects.simple.SequenceSet seqs) {
22 this.gapchar = gapchar;
29 * Gets the gapchar value for this Alignment.
33 public java.lang.String getGapchar() {
39 * Sets the gapchar value for this Alignment.
43 public void setGapchar(java.lang.String gapchar) {
44 this.gapchar = gapchar;
49 * Gets the method value for this Alignment.
53 public java.lang.String[] getMethod() {
59 * Sets the method value for this Alignment.
63 public void setMethod(java.lang.String[] method) {
69 * Gets the seqs value for this Alignment.
73 public vamsas.objects.simple.SequenceSet getSeqs() {
79 * Sets the seqs value for this Alignment.
83 public void setSeqs(vamsas.objects.simple.SequenceSet seqs) {
87 private java.lang.Object __equalsCalc = null;
88 public synchronized boolean equals(java.lang.Object obj) {
89 if (!(obj instanceof Alignment)) return false;
90 Alignment other = (Alignment) obj;
91 if (obj == null) return false;
92 if (this == obj) return true;
93 if (__equalsCalc != null) {
94 return (__equalsCalc == obj);
98 _equals = super.equals(obj) &&
99 ((this.gapchar==null && other.getGapchar()==null) ||
100 (this.gapchar!=null &&
101 this.gapchar.equals(other.getGapchar()))) &&
102 ((this.method==null && other.getMethod()==null) ||
103 (this.method!=null &&
104 java.util.Arrays.equals(this.method, other.getMethod()))) &&
105 ((this.seqs==null && other.getSeqs()==null) ||
107 this.seqs.equals(other.getSeqs())));
112 private boolean __hashCodeCalc = false;
113 public synchronized int hashCode() {
114 if (__hashCodeCalc) {
117 __hashCodeCalc = true;
118 int _hashCode = super.hashCode();
119 if (getGapchar() != null) {
120 _hashCode += getGapchar().hashCode();
122 if (getMethod() != null) {
124 i<java.lang.reflect.Array.getLength(getMethod());
126 java.lang.Object obj = java.lang.reflect.Array.get(getMethod(), i);
128 !obj.getClass().isArray()) {
129 _hashCode += obj.hashCode();
133 if (getSeqs() != null) {
134 _hashCode += getSeqs().hashCode();
136 __hashCodeCalc = false;