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