public static class FastSyncInfoFilter.SyncInfoDirectionFilter extends FastSyncInfoFilter
SyncInfo
whose change direction match those of the filter.FastSyncInfoFilter.AndSyncInfoFilter, FastSyncInfoFilter.AutomergableFilter, FastSyncInfoFilter.CompoundSyncInfoFilter, FastSyncInfoFilter.OrSyncInfoFilter, FastSyncInfoFilter.PseudoConflictFilter, FastSyncInfoFilter.SyncInfoChangeTypeFilter, FastSyncInfoFilter.SyncInfoDirectionFilter
SyncInfoFilter.ContentComparisonSyncInfoFilter
Constructor and Description |
---|
FastSyncInfoFilter.SyncInfoDirectionFilter(int direction)
Create a filter that will match
SyncInfo whose change direction
match that passed as arguments to this constructor. |
FastSyncInfoFilter.SyncInfoDirectionFilter(int[] directionFilters)
Create a filter that will match
SyncInfo whose change direction
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 FastSyncInfoFilter.SyncInfoDirectionFilter(int[] directionFilters)
SyncInfo
whose change direction
match those passed as arguments to this constructor.directionFilters
- the array of change directions (SyncInfo.OUTGOING
,
SyncInfo.INCOMING
and SyncInfo.CONFLICTING
) that this filter matchpublic FastSyncInfoFilter.SyncInfoDirectionFilter(int direction)
SyncInfo
whose change direction
match that passed as arguments to this constructor.direction
- the change direction (SyncInfo.OUTGOING
,
SyncInfo.INCOMING
and SyncInfo.CONFLICTING
) 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, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.