OpenAPI 1.0

com.aquafold.openapi.compare
Interface AQFileDifferences


public interface AQFileDifferences

An instance of this interface represents the results of a file comparison operation.


Method Summary
 void addSortingByDateAscending()
          Adds sorting by file date in ascending order.
 void addSortingByDateDescending()
          Adds sorting by file date in descending order.
 void addSortingByNameAscending()
          Adds sorting by file name in ascending order.
 void addSortingByNameDescending()
          Adds sorting by file name in descending order.
 void addSortingBySizeAscending()
          Adds sorting by file size in ascending order.
 void addSortingBySizeDescending()
          Adds sorting by file size in descending order.
 void clearSorting()
          Removes all sorting criteria.
 File[] getAddedFiles()
          Returns an array added files, which exist on the left side only.
 File[] getDeletedFiles()
          Returns an array of deleted files, which exist on the right side only.
 File[] getModifiedFiles()
          Returns an array of modified files - files that exist on both left and right sides, but determined to be different according to the set criteria.
 File[] getUnchangedFiles()
          Returns an array of unchanged files - files that exist on both left and right sides, but determined to be unchanged according to the set criteria.
 boolean hasChanges()
          Returns true if comparison detected any number of changes according to the set criteria.
 void sort()
          Sorts the result using criteria set with addSorting...
 

Method Detail

addSortingByNameAscending

void addSortingByNameAscending()
Adds sorting by file name in ascending order. This method performs no sorting, call sort() to actually sort the data.


addSortingByNameDescending

void addSortingByNameDescending()
Adds sorting by file name in descending order. This method performs no sorting, call sort() to actually sort the data.


addSortingBySizeAscending

void addSortingBySizeAscending()
Adds sorting by file size in ascending order. This method performs no sorting, call sort() to actually sort the data.


addSortingBySizeDescending

void addSortingBySizeDescending()
Adds sorting by file size in descending order. This method performs no sorting, call sort() to actually sort the data.


addSortingByDateAscending

void addSortingByDateAscending()
Adds sorting by file date in ascending order. This method performs no sorting, call sort() to actually sort the data.


addSortingByDateDescending

void addSortingByDateDescending()
Adds sorting by file date in descending order. This method performs no sorting, call sort() to actually sort the data.


clearSorting

void clearSorting()
Removes all sorting criteria. This method performs no sorting, call sort() to actually sort the data.


sort

void sort()
Sorts the result using criteria set with addSorting... methods.


hasChanges

boolean hasChanges()
Returns true if comparison detected any number of changes according to the set criteria.


getAddedFiles

File[] getAddedFiles()
Returns an array added files, which exist on the left side only.


getDeletedFiles

File[] getDeletedFiles()
Returns an array of deleted files, which exist on the right side only.


getModifiedFiles

File[] getModifiedFiles()
Returns an array of modified files - files that exist on both left and right sides, but determined to be different according to the set criteria.


getUnchangedFiles

File[] getUnchangedFiles()
Returns an array of unchanged files - files that exist on both left and right sides, but determined to be unchanged according to the set criteria.


OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.