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:
950 bytes
|
Line | |
---|
1 | package genius.core.tournament.VariablesAndValues;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * @author mark
|
---|
5 | * Store the database location
|
---|
6 | */
|
---|
7 | public class DBLocationValue extends TournamentValue
|
---|
8 | {
|
---|
9 | private static final long serialVersionUID = 1L;
|
---|
10 | String value;
|
---|
11 |
|
---|
12 | public DBLocationValue(String val) { value=val; }
|
---|
13 |
|
---|
14 | public String toString() { return value; }
|
---|
15 |
|
---|
16 | public String getValue(){ return value; }
|
---|
17 |
|
---|
18 | @Override
|
---|
19 | public int hashCode() {
|
---|
20 | final int prime = 31;
|
---|
21 | int result = 1;
|
---|
22 | result = prime * result + ((value == null) ? 0 : value.hashCode());
|
---|
23 | return result;
|
---|
24 | }
|
---|
25 |
|
---|
26 | @Override
|
---|
27 | public boolean equals(Object obj) {
|
---|
28 | if (this == obj)
|
---|
29 | return true;
|
---|
30 | if (obj == null)
|
---|
31 | return false;
|
---|
32 | if (getClass() != obj.getClass())
|
---|
33 | return false;
|
---|
34 | DBLocationValue other = (DBLocationValue) obj;
|
---|
35 | if (value == null) {
|
---|
36 | if (other.value != null)
|
---|
37 | return false;
|
---|
38 | } else if (!value.equals(other.value))
|
---|
39 | return false;
|
---|
40 | return true;
|
---|
41 | }
|
---|
42 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.