Class ChangeSetResults

java.lang.Object
org.apache.commons.compress.changes.ChangeSetResults

public class ChangeSetResults extends Object
Stores the results of an performed ChangeSet operation.
  • Field Details

    • addedFromChangeSet

      private final List<String> addedFromChangeSet
    • addedFromStream

      private final List<String> addedFromStream
    • deleted

      private final List<String> deleted
  • Constructor Details

    • ChangeSetResults

      public ChangeSetResults()
  • Method Details

    • deleted

      void deleted(String fileName)
      Adds the file name of a recently deleted file to the result list.
      Parameters:
      fileName - the file which has been deleted
    • addedFromStream

      void addedFromStream(String fileName)
      Adds the name of a file to the result list which has been copied from the source stream to the target stream.
      Parameters:
      fileName - the file name which has been added from the original stream
    • addedFromChangeSet

      void addedFromChangeSet(String fileName)
      Adds the name of a file to the result list which has been copied from the changeset to the target stream
      Parameters:
      fileName - the name of the file
    • getAddedFromChangeSet

      public List<String> getAddedFromChangeSet()
      Returns a list of file names which has been added from the changeset
      Returns:
      the list of file names
    • getAddedFromStream

      public List<String> getAddedFromStream()
      Returns a list of file names which has been added from the original stream
      Returns:
      the list of file names
    • getDeleted

      public List<String> getDeleted()
      Returns a list of file names which has been deleted
      Returns:
      the list of file names
    • hasBeenAdded

      boolean hasBeenAdded(String fileName)
      Checks if an file name already has been added to the result list
      Parameters:
      fileName - the file name to check
      Returns:
      true, if this file name already has been added