com.atlassian.crucible.scm
Class FileHistory

java.lang.Object
  extended by com.atlassian.crucible.scm.HasMaybeDetails
      extended by com.atlassian.crucible.scm.FileHistory

public final class FileHistory
extends HasMaybeDetails

Details of the history of the file at a particular path.

When an instance of this class is created (usually due to a call to getFileHistory(String path) on a DirectoryBrowser implementation), the creator must provide a list of RevisionKeys, sorted most recent first.

The creator may optionally put RevisionData instances for some of the keys into the FileHistory object by calling addDetails, if that information is available cheaply.


Constructor Summary
FileHistory(java.util.List<RevisionKey> revisions)
           
 
Method Summary
 java.lang.String getDisplayPath()
           
 java.util.List<RevisionKey> getRevisions()
           
 
Methods inherited from class com.atlassian.crucible.scm.HasMaybeDetails
addAllDetails, addDetails, anyMaybeDetails, getMaybeDetails, getMaybeDetails
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHistory

public FileHistory(java.util.List<RevisionKey> revisions)
Parameters:
revisions - a List sorted in descending order of creation date -- that is, newest first
Method Detail

getDisplayPath

public java.lang.String getDisplayPath()

getRevisions

public java.util.List<RevisionKey> getRevisions()