Package jetbrains.buildServer.vcs
Class BaseCommitData
- java.lang.Object
-
- jetbrains.buildServer.vcs.BaseCommitData
-
- All Implemented Interfaces:
CommitData
- Direct Known Subclasses:
BaseModificationData,CommitDataBean
public class BaseCommitData extends Object implements CommitData
Created 27.09.13 19:38- Since:
- 8.1
- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseCommitData(String version, String displayVersion, Date vcsDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParentRevision(String parentRevision)Add parent revision for this changebooleanequals(Object o)protected booleanequalsImpl(BaseCommitData that)Map<String,String>getAttributes()StringgetDisplayVersion()List<String>getParentRevisions()Get parent revisions of this change, returns an empty list if VCS does not provide information about parents.DategetVcsDate()StringgetVersion()inthashCode()voidsetAttribute(String name, String value)voidsetAttributes(Map<String,String> attributes)voidsetParentRevisions(Collection<String> parentRevisions)Set parent revisions for this changeStringtoString()
-
-
-
Method Detail
-
getVcsDate
@NotNull public Date getVcsDate()
- Specified by:
getVcsDatein interfaceCommitData- Returns:
- VCS change date
-
getVersion
@NotNull public String getVersion()
- Specified by:
getVersionin interfaceCommitData- Returns:
- VCS revision (internal representation)
-
getDisplayVersion
@NotNull public String getDisplayVersion()
- Specified by:
getDisplayVersionin interfaceCommitData- Returns:
- VCS revision (displayable representation)
-
addParentRevision
public void addParentRevision(@NotNull String parentRevision)Add parent revision for this change- Parameters:
parentRevision- parent revision- Since:
- 7.0
-
setParentRevisions
public void setParentRevisions(@NotNull Collection<String> parentRevisions)Set parent revisions for this change- Parameters:
parentRevisions- parent revisions- Since:
- 7.0
-
getParentRevisions
@NotNull public List<String> getParentRevisions()
Get parent revisions of this change, returns an empty list if VCS does not provide information about parents.- Specified by:
getParentRevisionsin interfaceCommitData- Returns:
- see above
- Since:
- 7.0
-
getAttributes
@NotNull public Map<String,String> getAttributes()
- Specified by:
getAttributesin interfaceCommitData- Returns:
- attributes of this change
-
equalsImpl
protected boolean equalsImpl(@NotNull BaseCommitData that)
-
-