Class ChangeSetResults
java.lang.Object
org.apache.commons.compress.changes.ChangeSetResults
Stores the results of an performed ChangeSet operation.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) 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(package private) 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.(package private) void
Adds the file name of a recently deleted file to the result list.Returns a list of file names which has been added from the changesetReturns a list of file names which has been added from the original streamReturns a list of file names which has been deleted(package private) boolean
hasBeenAdded
(String fileName) Checks if an file name already has been added to the result list
-
Field Details
-
addedFromChangeSet
-
addedFromStream
-
deleted
-
-
Constructor Details
-
ChangeSetResults
public ChangeSetResults()
-
-
Method Details
-
deleted
Adds the file name of a recently deleted file to the result list.- Parameters:
fileName
- the file which has been deleted
-
addedFromStream
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
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
Returns a list of file names which has been added from the changeset- Returns:
- the list of file names
-
getAddedFromStream
Returns a list of file names which has been added from the original stream- Returns:
- the list of file names
-
getDeleted
Returns a list of file names which has been deleted- Returns:
- the list of file names
-
hasBeenAdded
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
-