Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
List< String > | getAddedPaths () |
List< String > | getAddedFolders () |
void | clearAddedFolders () |
List< String > | getRemovedPaths () |
List< String > | getRemovedPathsSanitized () |
void | clearRemovedPaths () |
List< String > | getUnalteredPaths () |
List< String > | getAlteredPaths () |
int | hashCode () |
boolean | equals (Object obj) |
String | toString () |
Static Public Member Functions | |
static FileListDiff | diff (FileList base, FileList target) |
A diff between two FileLists.
void de.fu_berlin.inf.dpp.negotiation.FileListDiff.clearAddedFolders | ( | ) |
Excludes all added empty folders from this diff.
void de.fu_berlin.inf.dpp.negotiation.FileListDiff.clearRemovedPaths | ( | ) |
Excludes all removed paths from this diff.
static FileListDiff de.fu_berlin.inf.dpp.negotiation.FileListDiff.diff | ( | FileList | base, |
FileList | target | ||
) | [static] |
Returns a new FileListDiff which contains the difference of the two FileLists.
The diff describes the operations needed to transform base
into target
. For example, the result's getAddedPaths() returns the list of files and folders that are present in target
, but not in base
.
If either of the two parameters is null
, the result is an empty diff.
boolean de.fu_berlin.inf.dpp.negotiation.FileListDiff.equals | ( | Object | obj | ) |
List<String> de.fu_berlin.inf.dpp.negotiation.FileListDiff.getAddedFolders | ( | ) |
Subset of target.getPaths(): All empty folders that do not exist in base
.
List<String> de.fu_berlin.inf.dpp.negotiation.FileListDiff.getAddedPaths | ( | ) |
Subset of target.getPaths(): All entries that do not exist in base
.
List<String> de.fu_berlin.inf.dpp.negotiation.FileListDiff.getAlteredPaths | ( | ) |
Subset of the intersection of base.getPaths() and target.getPaths(): All entries that have been changed.
List<String> de.fu_berlin.inf.dpp.negotiation.FileListDiff.getRemovedPaths | ( | ) |
Subset of base.getPaths(): All entries that do not exist in target
.
List<String> de.fu_berlin.inf.dpp.negotiation.FileListDiff.getRemovedPathsSanitized | ( | ) |
Subset of base.getPaths(): All entries that do not exist in target
, except folders that contain unaltered entries.
List<String> de.fu_berlin.inf.dpp.negotiation.FileListDiff.getUnalteredPaths | ( | ) |
Subset of the intersection of base.getPaths() and target.getPaths(): All entries that have not been changed.
int de.fu_berlin.inf.dpp.negotiation.FileListDiff.hashCode | ( | ) |
String de.fu_berlin.inf.dpp.negotiation.FileListDiff.toString | ( | ) |