1
2
3
4
5
6
7
8 package org.apache.maven.doxia.site.decoration;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class Version
17 implements java.io.Serializable, java.lang.Cloneable
18 {
19
20
21
22
23
24
25
26
27
28 private String position;
29
30
31
32
33
34
35
36
37
38
39
40 public Version clone()
41 {
42 try
43 {
44 Version copy = (Version) super.clone();
45
46 return copy;
47 }
48 catch ( java.lang.Exception ex )
49 {
50 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
51 + " does not support clone()" ).initCause( ex );
52 }
53 }
54
55
56
57
58
59
60
61 public boolean equals( Object other )
62 {
63 if ( this == other )
64 {
65 return true;
66 }
67
68 if ( !( other instanceof Version ) )
69 {
70 return false;
71 }
72
73 Version that = (Version) other;
74 boolean result = true;
75
76 result = result && ( getPosition() == null ? that.getPosition() == null : getPosition().equals( that.getPosition() ) );
77
78 return result;
79 }
80
81
82
83
84
85
86
87 public String getPosition()
88 {
89 return this.position;
90 }
91
92
93
94
95
96
97 public int hashCode()
98 {
99 int result = 17;
100
101 result = 37 * result + ( position != null ? position.hashCode() : 0 );
102
103 return result;
104 }
105
106
107
108
109
110
111
112 public void setPosition( String position )
113 {
114 this.position = position;
115 }
116
117
118
119
120
121
122 public java.lang.String toString()
123 {
124 StringBuilder buf = new StringBuilder( 128 );
125
126 buf.append( "position = '" );
127 buf.append( getPosition() );
128 buf.append( "'" );
129
130 return buf.toString();
131 }
132
133 }