And I thought that I had seen everything. But I hadn’t yet seen a wrapper to a String!!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| public class OneVariableGenericVO implements java.io.Serializable { private String varName; public OneVariableGenericVO() { } public OneVariableGenericVO(String varName) { setVarName(varName); } public String getVarName() { return this .varName; } public void setVarName(String varName) { this .varName = varName; } } |
SO instead of using a String someone had the brilliant idea to wrap a String into an object and use this instead. What can I say? I am speechless.
No comments:
Post a Comment