Last change
on this file was 127, checked in by Wouter Pasman, 7 years ago |
#41 ROLL BACK of rev.126 . So this version is equal to rev. 125
|
File size:
975 bytes
|
Line | |
---|
1 | package genius.core.tournament.VariablesAndValues;
|
---|
2 |
|
---|
3 | import genius.core.boaframework.BOAagentInfo;
|
---|
4 |
|
---|
5 | public class BOAagentValue extends TournamentValue
|
---|
6 | {
|
---|
7 | private static final long serialVersionUID = 4154311572147986731L;
|
---|
8 | BOAagentInfo value;
|
---|
9 |
|
---|
10 | public BOAagentValue(BOAagentInfo val) { value = val; }
|
---|
11 | public String toString() { return value.toString(); }
|
---|
12 | public BOAagentInfo getValue() { return value; }
|
---|
13 |
|
---|
14 | @Override
|
---|
15 | public int hashCode() {
|
---|
16 | final int prime = 31;
|
---|
17 | int result = 1;
|
---|
18 | result = prime * result + ((value == null) ? 0 : value.hashCode());
|
---|
19 | return result;
|
---|
20 | }
|
---|
21 | @Override
|
---|
22 | public boolean equals(Object obj) {
|
---|
23 | if (this == obj)
|
---|
24 | return true;
|
---|
25 | if (obj == null)
|
---|
26 | return false;
|
---|
27 | if (getClass() != obj.getClass())
|
---|
28 | return false;
|
---|
29 | BOAagentValue other = (BOAagentValue) obj;
|
---|
30 | if (value == null) {
|
---|
31 | if (other.value != null)
|
---|
32 | return false;
|
---|
33 | } else if (!value.equals(other.value))
|
---|
34 | return false;
|
---|
35 | return true;
|
---|
36 | }
|
---|
37 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.