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 protected
BaseCommitData(String version, String displayVersion, Date vcsDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParentRevision(String parentRevision)
Add parent revision for this changeboolean
equals(Object o)
protected boolean
equalsImpl(BaseCommitData that)
Map<String,String>
getAttributes()
String
getDisplayVersion()
List<String>
getParentRevisions()
Get parent revisions of this change, returns an empty list if VCS does not provide information about parents.Date
getVcsDate()
String
getVersion()
int
hashCode()
void
setAttribute(String name, String value)
void
setAttributes(Map<String,String> attributes)
void
setParentRevisions(Collection<String> parentRevisions)
Set parent revisions for this changeString
toString()
-
-
-
Method Detail
-
getVcsDate
@NotNull public Date getVcsDate()
- Specified by:
getVcsDate
in interfaceCommitData
- Returns:
- VCS change date
-
getVersion
@NotNull public String getVersion()
- Specified by:
getVersion
in interfaceCommitData
- Returns:
- VCS revision (internal representation)
-
getDisplayVersion
@NotNull public String getDisplayVersion()
- Specified by:
getDisplayVersion
in 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:
getParentRevisions
in interfaceCommitData
- Returns:
- see above
- Since:
- 7.0
-
getAttributes
@NotNull public Map<String,String> getAttributes()
- Specified by:
getAttributes
in interfaceCommitData
- Returns:
- attributes of this change
-
equalsImpl
protected boolean equalsImpl(@NotNull BaseCommitData that)
-
-