Package org.syncany.operations
Class ChangeSet
- java.lang.Object
-
- org.syncany.operations.ChangeSet
-
public class ChangeSet extends java.lang.Object
A change set represents the result of a comparison of two file trees, either by comparing a local file tree with the local database, or by comparing the remote database with the local database.It contains several lists, indicating new, changed, deleted and unchanged files. File paths are stored relative to the root Syncany directory.
-
-
Constructor Summary
Constructors Constructor Description ChangeSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.TreeSet<java.lang.String>
getChangedFiles()
java.util.TreeSet<java.lang.String>
getDeletedFiles()
java.util.TreeSet<java.lang.String>
getNewFiles()
java.util.TreeSet<java.lang.String>
getUnchangedFiles()
boolean
hasChanges()
Returnstrue
if files have been added, changed or deleted by checking the size ofgetNewFiles()
,getChangedFiles()
andgetDeletedFiles()
.
-
-
-
Constructor Detail
-
ChangeSet
public ChangeSet()
-
-
Method Detail
-
hasChanges
public boolean hasChanges()
Returnstrue
if files have been added, changed or deleted by checking the size ofgetNewFiles()
,getChangedFiles()
andgetDeletedFiles()
.
-
getChangedFiles
public java.util.TreeSet<java.lang.String> getChangedFiles()
-
getNewFiles
public java.util.TreeSet<java.lang.String> getNewFiles()
-
getDeletedFiles
public java.util.TreeSet<java.lang.String> getDeletedFiles()
-
getUnchangedFiles
public java.util.TreeSet<java.lang.String> getUnchangedFiles()
-
-