Class LastChanges
- java.lang.Object
-
- com.github.jenkins.lastchanges.model.LastChanges
-
- All Implemented Interfaces:
Serializable
public class LastChanges extends Object implements Serializable
This class represents the changes between two trees (in git) and two revisions (in svn). currentRevision gathers the information from latest commit on the newest tree (in git) and most recent revision (in svn) previousRevision has the information of the most recent commit in previous tree (in git) and most recent commit (in svn) diff is the differences between those trees (in git) or revisions (in svn) commits is the list of commits between those revisions/trees. Each commit has the commit information (as in current/previous revisions) as well as the diff compared to it's previous revision. Created by rmpestano on 7/3/16.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LastChanges(CommitInfo current, CommitInfo previous, String diff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommit(CommitChanges commitchange)
void
addCommits(List<CommitChanges> commitChanges)
List<CommitChanges>
getCommits()
CommitInfo
getCurrentRevision()
String
getDiff()
String
getEscapedDiff()
Integer
getNumCommits()
CommitInfo
getPreviousRevision()
-
-
-
Constructor Detail
-
LastChanges
public LastChanges(CommitInfo current, CommitInfo previous, String diff)
-
-
Method Detail
-
getCurrentRevision
public CommitInfo getCurrentRevision()
-
getPreviousRevision
public CommitInfo getPreviousRevision()
-
getDiff
public String getDiff()
-
getEscapedDiff
public String getEscapedDiff()
-
addCommits
public void addCommits(List<CommitChanges> commitChanges)
-
addCommit
public void addCommit(CommitChanges commitchange)
-
getCommits
public List<CommitChanges> getCommits()
-
getNumCommits
public Integer getNumCommits()
-
-