source: src/main/java/genius/core/tournament/VariablesAndValues/DBSessionValue.java

Last change on this file was 127, checked in by Wouter Pasman, 6 years ago

#41 ROLL BACK of rev.126 . So this version is equal to rev. 125

File size: 891 bytes
Line 
1package genius.core.tournament.VariablesAndValues;
2
3public class DBSessionValue extends TournamentValue
4{
5 private static final long serialVersionUID = 1L;
6 String value;
7
8 public DBSessionValue(String val) { value=val; }
9
10 public String toString() { return value; }
11
12 public String 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
22 @Override
23 public boolean equals(Object obj) {
24 if (this == obj)
25 return true;
26 if (obj == null)
27 return false;
28 if (getClass() != obj.getClass())
29 return false;
30 DBSessionValue other = (DBSessionValue) obj;
31 if (value == null) {
32 if (other.value != null)
33 return false;
34 } else if (!value.equals(other.value))
35 return false;
36 return true;
37 }
38}
39
Note: See TracBrowser for help on using the repository browser.