Package com.helger.pd.indexer.reindex
Interface IReIndexWorkItemList
- All Known Implementing Classes:
ReIndexWorkItemList
public interface IReIndexWorkItemList
Base interface for
ReIndexWorkItem
objects.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.helger.commons.state.EChange
default com.helger.commons.state.EChange
deleteItem
(String sID) com.helger.commons.collection.impl.ICommonsList<? extends IReIndexWorkItem>
com.helger.commons.collection.impl.ICommonsList<IReIndexWorkItem>
getAndRemoveAllEntries
(Predicate<? super IReIndexWorkItem> aFilter) Remove all work items matching the provided predicate.getAndRemoveEntry
(Predicate<? super IReIndexWorkItem> aFilter) Find and remove the first work item matching the provided predicate.int
getItemOfID
(String sID) Get the item with the specified ID.
-
Method Details
-
getAllItems
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<? extends IReIndexWorkItem> getAllItems()- Returns:
- A list of all re-index items currently in the list. Never
null
but maybe empty.
-
getItemCount
- Returns:
- The number of contained items. Always ≥ 0.
-
getItemOfID
Get the item with the specified ID.- Parameters:
sID
- The ID to search. May benull
.- Returns:
null
if no such item exists.
-
getAndRemoveEntry
Find and remove the first work item matching the provided predicate.- Parameters:
aFilter
- The predicate to use. May not benull
.- Returns:
null
if no such entry exists.
-
deleteItem
-
getAndRemoveAllEntries
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<IReIndexWorkItem> getAndRemoveAllEntries(@Nonnull Predicate<? super IReIndexWorkItem> aFilter) Remove all work items matching the provided predicate.- Parameters:
aFilter
- The predicate to use. May not benull
.- Returns:
null
if no such entry exists.
-
deleteAllItems
-