public class GetChangeOptions extends Object
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
comparer.compare();
GetChangeOptions getChangeOptions = new GetChangeOptions();
getChangeOptions.setFilter(ChangeType.DELETED);
ChangeInfo[] changes = comparer.getChanges(getChangeOptions);
System.out.println(Arrays.toString(changes));
}
Comparer,
ChangeInfo| Constructor and Description |
|---|
GetChangeOptions()
Initializes a new instance of the GetChangeOptions class.
|
GetChangeOptions(ChangeType filter)
Initializes a new instance of the GetChangeOptions class for specified filter type.
|
| Modifier and Type | Method and Description |
|---|---|
ChangeType |
getFilter()
Gets the filter for retrieving specific change types from the comparison result.
|
void |
setFilter(ChangeType value)
Sets the filter for retrieving specific change types from the comparison result.
|
public GetChangeOptions()
Initializes a new instance of the GetChangeOptions class.
public GetChangeOptions(ChangeType filter)
Initializes a new instance of the GetChangeOptions class for specified filter type.
public final ChangeType getFilter()
Gets the filter for retrieving specific change types from the comparison result.
public final void setFilter(ChangeType value)
Sets the filter for retrieving specific change types from the comparison result.
value - The filter specifying the types of changes to be retrieved.Copyright © 2024. All rights reserved.