1 package ca.uhn.fhir.model.api;
2
3 import org.apache.commons.lang3.builder.ToStringBuilder;
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 public class Include {
34
35 private String myValue;
36
37 public Include(String theValue) {
38 myValue = theValue;
39 }
40
41 @Override
42 public boolean equals(Object obj) {
43 if (this == obj)
44 return true;
45 if (obj == null)
46 return false;
47 if ((obj instanceof Include)==false)
48 return false;
49 Include other = (Include) obj;
50 if (myValue == null) {
51 if (other.myValue != null)
52 return false;
53 } else if (!myValue.equals(other.myValue))
54 return false;
55 return true;
56 }
57
58 public String getValue() {
59 return myValue;
60 }
61
62 @Override
63 public int hashCode() {
64 final int prime = 31;
65 int result = 1;
66 result = prime * result + ((myValue == null) ? 0 : myValue.hashCode());
67 return result;
68 }
69
70 public void setValue(String theValue) {
71 myValue = theValue;
72 }
73
74 @Override
75 public String toString() {
76 ToStringBuilder builder = new ToStringBuilder(this);
77 builder.append("myValue", myValue);
78 return builder.toString();
79 }
80
81 }