Interface PagingContextHolder.Updater

Enclosing class:
PagingContextHolder
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PagingContextHolder.Updater
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends Context>
    T
    updateInnerContext(int chunkCapacity, @Nullable SharedContext sharedContext, @Nullable Context currentInnerContext)
    Provide a new inner context value based on the current state of this holder.
  • Method Details

    • updateInnerContext

      @Nullable <T extends Context> T updateInnerContext(int chunkCapacity, @Nullable @Nullable SharedContext sharedContext, @Nullable @Nullable Context currentInnerContext)
      Provide a new inner context value based on the current state of this holder.
      Type Parameters:
      T - The result type
      Parameters:
      chunkCapacity - The holder's chunk capacity
      sharedContext - The holder's SharedContext
      currentInnerContext - The holder's current inner context
      Returns:
      The new inner context to be held by this holder