1
2
3
4
5
6
7
8 package org.apache.maven.artifact.repository.metadata;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class Snapshot
17 implements java.io.Serializable, java.lang.Cloneable
18 {
19
20
21
22
23
24
25
26
27 private String timestamp;
28
29
30
31
32 private int buildNumber = 0;
33
34
35
36
37
38 private boolean localCopy = false;
39
40
41
42
43
44
45
46
47
48
49
50 public Snapshot clone()
51 {
52 try
53 {
54 Snapshot copy = (Snapshot) super.clone();
55
56 return copy;
57 }
58 catch ( java.lang.Exception ex )
59 {
60 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
61 + " does not support clone()" ).initCause( ex );
62 }
63 }
64
65
66
67
68
69
70 public int getBuildNumber()
71 {
72 return this.buildNumber;
73 }
74
75
76
77
78
79
80 public String getTimestamp()
81 {
82 return this.timestamp;
83 }
84
85
86
87
88
89
90
91 public boolean isLocalCopy()
92 {
93 return this.localCopy;
94 }
95
96
97
98
99
100
101 public void setBuildNumber( int buildNumber )
102 {
103 this.buildNumber = buildNumber;
104 }
105
106
107
108
109
110
111
112 public void setLocalCopy( boolean localCopy )
113 {
114 this.localCopy = localCopy;
115 }
116
117
118
119
120
121
122 public void setTimestamp( String timestamp )
123 {
124 this.timestamp = timestamp;
125 }
126
127 }