hudson.scm.SurroundSCMRevisionState Maven / Gradle / Ivy
package hudson.scm;
import hudson.scm.SCMRevisionState;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class SurroundSCMRevisionState extends SCMRevisionState {
public Map revisions;
public SurroundSCMRevisionState(Map revisions) {
this.revisions = revisions;
}
public SurroundSCMRevisionState() {
revisions = new HashMap();
buildDate = new Date();
}
public void AddRevision(String key, long value){
if (revisions == null)
revisions = new HashMap();
revisions.put(key, value);
}
public void setRevisions(Map revisions) {
this.revisions = revisions;
}
public void setDate(Date date) {
buildDate = date;
}
public Date getDate() {
return buildDate;
}
public Date buildDate;
}