Class ChangeSetResults
- java.lang.Object
-
- org.apache.commons.compress.changes.ChangeSetResults
-
public class ChangeSetResults extends java.lang.Object
Stores the results of an performed ChangeSet operation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
addedFromChangeSet
private java.util.List<java.lang.String>
addedFromStream
private java.util.List<java.lang.String>
deleted
-
Constructor Summary
Constructors Constructor Description ChangeSetResults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addedFromChangeSet(java.lang.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(java.lang.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
deleted(java.lang.String fileName)
Adds the file name of a recently deleted file to the result list.java.util.List<java.lang.String>
getAddedFromChangeSet()
Returns a list of file names which has been added from the changesetjava.util.List<java.lang.String>
getAddedFromStream()
Returns a list of file names which has been added from the original streamjava.util.List<java.lang.String>
getDeleted()
Returns a list of file names which has been deleted(package private) boolean
hasBeenAdded(java.lang.String fileName)
Checks if an file name already has been added to the result list
-
-
-
Method Detail
-
deleted
void deleted(java.lang.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(java.lang.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(java.lang.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 java.util.List<java.lang.String> getAddedFromChangeSet()
Returns a list of file names which has been added from the changeset- Returns:
- the list of file names
-
getAddedFromStream
public java.util.List<java.lang.String> getAddedFromStream()
Returns a list of file names which has been added from the original stream- Returns:
- the list of file names
-
getDeleted
public java.util.List<java.lang.String> getDeleted()
Returns a list of file names which has been deleted- Returns:
- the list of file names
-
hasBeenAdded
boolean hasBeenAdded(java.lang.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
-
-