All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hudson.scm.SurroundSCMRevisionState Maven / Gradle / Ivy

There is a newer version: 1.9
Show newest version
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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy