Interface IReIndexWorkItemList

All Known Implementing Classes:
ReIndexWorkItemList

public interface IReIndexWorkItemList
Base interface for ReIndexWorkItem objects.
Author:
Philip Helger
  • 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

      @Nonnegative int getItemCount()
      Returns:
      The number of contained items. Always ≥ 0.
    • getItemOfID

      Get the item with the specified ID.
      Parameters:
      sID - The ID to search. May be null.
      Returns:
      null if no such item exists.
    • getAndRemoveEntry

      @Nullable IReIndexWorkItem getAndRemoveEntry(@Nonnull Predicate<? super IReIndexWorkItem> aFilter)
      Find and remove the first work item matching the provided predicate.
      Parameters:
      aFilter - The predicate to use. May not be null.
      Returns:
      null if no such entry exists.
    • deleteItem

      @Nonnull default com.helger.commons.state.EChange deleteItem(@Nullable String sID)
    • 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 be null.
      Returns:
      null if no such entry exists.
    • deleteAllItems

      @Nonnull default com.helger.commons.state.EChange deleteAllItems()