1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package vamsas.objects.simple; |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 68 (68) |
Complexity: 21 |
Complexity Density: 0.55 |
|
23 |
|
public class Alignment extends vamsas.objects.simple.Object |
24 |
|
implements java.io.Serializable |
25 |
|
{ |
26 |
|
private java.lang.String gapchar; |
27 |
|
|
28 |
|
private java.lang.String[] method; |
29 |
|
|
30 |
|
private vamsas.objects.simple.SequenceSet seqs; |
31 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
32 |
0 |
public Alignment()... |
33 |
|
{ |
34 |
|
} |
35 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
36 |
0 |
public Alignment(java.lang.String gapchar, java.lang.String[] method,... |
37 |
|
vamsas.objects.simple.SequenceSet seqs) |
38 |
|
{ |
39 |
0 |
this.gapchar = gapchar; |
40 |
0 |
this.method = method; |
41 |
0 |
this.seqs = seqs; |
42 |
|
} |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
@return |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0 |
public java.lang.String getGapchar()... |
50 |
|
{ |
51 |
0 |
return gapchar; |
52 |
|
} |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
@param |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0 |
public void setGapchar(java.lang.String gapchar)... |
60 |
|
{ |
61 |
0 |
this.gapchar = gapchar; |
62 |
|
} |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
@return |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0 |
public java.lang.String[] getMethod()... |
70 |
|
{ |
71 |
0 |
return method; |
72 |
|
} |
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
@param |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
0 |
public void setMethod(java.lang.String[] method)... |
80 |
|
{ |
81 |
0 |
this.method = method; |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
@return |
88 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
0 |
public vamsas.objects.simple.SequenceSet getSeqs()... |
90 |
|
{ |
91 |
0 |
return seqs; |
92 |
|
} |
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
@param |
98 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
0 |
public void setSeqs(vamsas.objects.simple.SequenceSet seqs)... |
100 |
|
{ |
101 |
0 |
this.seqs = seqs; |
102 |
|
} |
103 |
|
|
104 |
|
private java.lang.Object __equalsCalc = null; |
105 |
|
|
|
|
| 0% |
Uncovered Elements: 22 (22) |
Complexity: 5 |
Complexity Density: 0.36 |
|
106 |
0 |
@Override... |
107 |
|
public synchronized boolean equals(java.lang.Object obj) |
108 |
|
{ |
109 |
0 |
if (obj == null) |
110 |
|
{ |
111 |
0 |
return false; |
112 |
|
} |
113 |
0 |
if (!(obj instanceof Alignment)) |
114 |
|
{ |
115 |
0 |
return false; |
116 |
|
} |
117 |
0 |
Alignment other = (Alignment) obj; |
118 |
0 |
if (this == obj) |
119 |
|
{ |
120 |
0 |
return true; |
121 |
|
} |
122 |
0 |
if (__equalsCalc != null) |
123 |
|
{ |
124 |
0 |
return (__equalsCalc == obj); |
125 |
|
} |
126 |
0 |
__equalsCalc = obj; |
127 |
0 |
boolean _equals; |
128 |
0 |
_equals = super.equals(obj) |
129 |
|
&& ((this.gapchar == null && other.getGapchar() == null) |
130 |
|
|| (this.gapchar != null |
131 |
|
&& this.gapchar.equals(other.getGapchar()))) |
132 |
|
&& ((this.method == null && other.getMethod() == null) |
133 |
|
|| (this.method != null && java.util.Arrays |
134 |
|
.equals(this.method, other.getMethod()))) |
135 |
|
&& ((this.seqs == null && other.getSeqs() == null) |
136 |
|
|| (this.seqs != null |
137 |
|
&& this.seqs.equals(other.getSeqs()))); |
138 |
0 |
__equalsCalc = null; |
139 |
0 |
return _equals; |
140 |
|
} |
141 |
|
|
142 |
|
private boolean __hashCodeCalc = false; |
143 |
|
|
|
|
| 0% |
Uncovered Elements: 27 (27) |
Complexity: 8 |
Complexity Density: 0.53 |
|
144 |
0 |
@Override... |
145 |
|
public synchronized int hashCode() |
146 |
|
{ |
147 |
0 |
if (__hashCodeCalc) |
148 |
|
{ |
149 |
0 |
return 0; |
150 |
|
} |
151 |
0 |
__hashCodeCalc = true; |
152 |
0 |
int _hashCode = super.hashCode(); |
153 |
0 |
if (getGapchar() != null) |
154 |
|
{ |
155 |
0 |
_hashCode += getGapchar().hashCode(); |
156 |
|
} |
157 |
0 |
if (getMethod() != null) |
158 |
|
{ |
159 |
0 |
for (int i = 0; i < java.lang.reflect.Array |
160 |
|
.getLength(getMethod()); i++) |
161 |
|
{ |
162 |
0 |
java.lang.Object obj = java.lang.reflect.Array.get(getMethod(), i); |
163 |
0 |
if (obj != null && !obj.getClass().isArray()) |
164 |
|
{ |
165 |
0 |
_hashCode += obj.hashCode(); |
166 |
|
} |
167 |
|
} |
168 |
|
} |
169 |
0 |
if (getSeqs() != null) |
170 |
|
{ |
171 |
0 |
_hashCode += getSeqs().hashCode(); |
172 |
|
} |
173 |
0 |
__hashCodeCalc = false; |
174 |
0 |
return _hashCode; |
175 |
|
} |
176 |
|
|
177 |
|
} |