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