GetChangeOptions
Contents
 [
        
            Hide
        ]
    Inheritance: java.lang.Object
public class GetChangeOptions
Allows configuring filtering for retrieving specific change types from the comparison result.
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));
 }
 
Constructors
| Constructor | 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. | 
Methods
| Method | Description | 
|---|---|
| getFilter() | Gets the filter for retrieving specific change types from the comparison result. | 
| setFilter(ChangeType value) | Sets the filter for retrieving specific change types from the comparison result. | 
GetChangeOptions()
public GetChangeOptions()
Initializes a new instance of the GetChangeOptions class.
GetChangeOptions(ChangeType filter)
public GetChangeOptions(ChangeType filter)
Initializes a new instance of the GetChangeOptions class for specified filter type.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| filter | ChangeType | 
getFilter()
public final ChangeType getFilter()
Gets the filter for retrieving specific change types from the comparison result.
Returns: ChangeType - the filter specifying the types of changes to be retrieved.
setFilter(ChangeType value)
public final void setFilter(ChangeType value)
Sets the filter for retrieving specific change types from the comparison result.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | ChangeType | The filter specifying the types of changes to be retrieved. |