public static class FastSyncInfoFilter.SyncInfoChangeTypeFilter extends FastSyncInfoFilter
SyncInfo
whose change type match those of the filter.FastSyncInfoFilter.AndSyncInfoFilter, FastSyncInfoFilter.AutomergableFilter, FastSyncInfoFilter.CompoundSyncInfoFilter, FastSyncInfoFilter.OrSyncInfoFilter, FastSyncInfoFilter.PseudoConflictFilter, FastSyncInfoFilter.SyncInfoChangeTypeFilter, FastSyncInfoFilter.SyncInfoDirectionFilter
SyncInfoFilter.ContentComparisonSyncInfoFilter
Constructor and Description |
---|
SyncInfoChangeTypeFilter(int change)
Create a filter that will match
SyncInfo whose change type
match that passed as an argument to this constructor. |
SyncInfoChangeTypeFilter(int[] changeFilters)
Create a filter that will match
SyncInfo whose change type
match those passed as arguments to this constructor. |
Modifier and Type | Method and Description |
---|---|
boolean |
select(SyncInfo info)
Return whether the provided
SyncInfo matches the filter. |
getDirectionAndChangeFilter, select
public SyncInfoChangeTypeFilter(int[] changeFilters)
SyncInfo
whose change type
match those passed as arguments to this constructor.changeFilters
- the array of change types (SyncInfo.ADDITION
,
SyncInfo.DELETION
and SyncInfo.CHANGE
) that this filter matchpublic SyncInfoChangeTypeFilter(int change)
SyncInfo
whose change type
match that passed as an argument to this constructor.change
- the change type (SyncInfo.ADDITION
,
SyncInfo.DELETION
and SyncInfo.CHANGE
) that this filter matchespublic boolean select(SyncInfo info)
FastSyncInfoFilter
SyncInfo
matches the filter. The default
behavior it to include resources whose syncKind is non-zero.select
in class FastSyncInfoFilter
info
- the SyncInfo
being testedtrue
if the SyncInfo
matches the filter
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.