public static enum ItemList.SynchronizeOption extends Enum<ItemList.SynchronizeOption>
ItemContext
. See ItemList.resyncFilter(DbControl, SynchronizeOption, boolean, ProgressReporter)
.Enum Constant and Description |
---|
ADD_ONLY
Synchronize the members by adding new items matching the filter.
|
FULL
Synchronize the members so that it contains all of the items matching the filter
and no items not matching the filter.
|
REMOVE_ONLY
Synchronize the members by removing items that doesn't match the filter.
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
synchronize(Set<Integer> existing,
Set<Integer> matching)
Synchronize the existing members with the items matching the
current filter context.
|
static ItemList.SynchronizeOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemList.SynchronizeOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemList.SynchronizeOption FULL
public static final ItemList.SynchronizeOption ADD_ONLY
public static final ItemList.SynchronizeOption REMOVE_ONLY
public static ItemList.SynchronizeOption[] values()
for (ItemList.SynchronizeOption c : ItemList.SynchronizeOption.values()) System.out.println(c);
public static ItemList.SynchronizeOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullabstract void synchronize(Set<Integer> existing, Set<Integer> matching)
existing
- A set containing the existing members of the item listmatching
- A set containing the items matching the sync filter