jetbrains.buildServer.vcs
Class ReverseChangeCollectionResult<TVersion>

java.lang.Object
  extended by jetbrains.buildServer.vcs.ReverseChangeCollectionResult<TVersion>

public class ReverseChangeCollectionResult<TVersion>
extends java.lang.Object

This class represents result of change collection Created 28.02.13 13:22

Since:
TC 8.0
Author:
Eugene Petrenko (eugene.petrenko@jetbrains.com)

Constructor Summary
ReverseChangeCollectionResult()
           
 
Method Summary
 void addChange(ModificationData data)
          Adds more changes to the result
 void addOldestVersion(TVersion oldestVersion)
          setts oldest version of changes collection
 java.util.Collection<ModificationData> getChanges()
           
 java.util.Collection<TVersion> getOldestVersions()
          For DVCS cases history back traverse could lead to non-unique parent-paths.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReverseChangeCollectionResult

public ReverseChangeCollectionResult()
Method Detail

getOldestVersions

@NotNull
public java.util.Collection<TVersion> getOldestVersions()
For DVCS cases history back traverse could lead to non-unique parent-paths. Plugin could report as much as necessary versions at end

Returns:
oldest versions of changes collection or empty collection if no more changes could be collected
Since:
TC 8.0

addOldestVersion

public void addOldestVersion(@Nullable
                             TVersion oldestVersion)
setts oldest version of changes collection

Parameters:
oldestVersion - version or null if no more changes could be collected
Since:
TC 8.0

getChanges

@NotNull
public java.util.Collection<ModificationData> getChanges()
Returns:
collected changes
Since:
TC 8.0

addChange

public void addChange(@NotNull
                      ModificationData data)
Adds more changes to the result

Parameters:
data - modification data to add
Since:
TC 8.0