java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination.PaginationBindings

@Internal public final class PaginationBindings extends Object
Static lookup helpers over a session's pagination bindings. Bindings live in the owning token's StateStore slot (created by the open phase), so lookups walk the view's token table and read each pagination token's slot.
  • Method Details

    • of

      @NotNull public static @NotNull List<PaginationBinding> of(@NotNull @NotNull ViewSession session)
      Returns the pagination bindings of a session in token-declaration order.
      Parameters:
      session - the session to inspect
      Returns:
      the bindings created for the session; empty when the view declares no pagination tokens or the open phase has not seeded them yet
    • componentAt

      @Nullable public static @Nullable ComponentInstance componentAt(@NotNull @NotNull ViewSession session, int slot)
      Looks up the pagination element component currently occupying a slot.
      Parameters:
      session - the session to inspect
      slot - the container slot
      Returns:
      the element component at the slot, or null when no binding owns it