1
2
3
4
5
6 package org.codehaus.modello.test.features;
7
8
9
10
11
12 import org.codehaus.modello.test.features.other.PackageNameFeature;
13 import org.codehaus.modello.test.features.other.SubInterfaceInPackage;
14
15
16
17
18
19
20 @SuppressWarnings( "all" )
21 public class Reference
22 implements java.io.Serializable
23 {
24
25
26
27
28
29
30
31
32 private String id;
33
34
35
36
37
38
39
40
41
42
43
44
45 public boolean equals( Object other )
46 {
47 if ( this == other )
48 {
49 return true;
50 }
51
52 if ( !( other instanceof Reference ) )
53 {
54 return false;
55 }
56
57 Reference./../../../../org/codehaus/modello/test/features/Reference.html#Reference">Reference that = (Reference) other;
58 boolean result = true;
59
60 result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
61
62 return result;
63 }
64
65
66
67
68
69
70 public String getId()
71 {
72 return this.id;
73 }
74
75
76
77
78
79
80 public int hashCode()
81 {
82 int result = 17;
83
84 result = 37 * result + ( id != null ? id.hashCode() : 0 );
85
86 return result;
87 }
88
89
90
91
92
93
94 public void setId( String id )
95 {
96 this.id = id;
97 }
98
99
100
101
102
103
104 public java.lang.String toString()
105 {
106 StringBuilder buf = new StringBuilder( 128 );
107
108 buf.append( "id = '" );
109 buf.append( getId() );
110 buf.append( "'" );
111
112 return buf.toString();
113 }
114
115 }