1 package nl.tudelft.goal.ut2004.messages;
2
3
4
5
6 public final class None {
7
8 private final String none = "none";
9
10 public String id(){
11 return none;
12 }
13
14 @Override
15 public int hashCode() {
16 final int prime = 31;
17 int result = 1;
18 result = prime * result + ((none == null) ? 0 : none.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 None other = (None) obj;
31 if (none == null) {
32 if (other.none != null)
33 return false;
34 } else if (!none.equals(other.none))
35 return false;
36 return true;
37 }
38
39 }