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