All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blazebit.persistence.spring.data.repository.KeysetAwareSlice Maven / Gradle / Ivy

/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright Blazebit
 */

package com.blazebit.persistence.spring.data.repository;

import com.blazebit.persistence.KeysetPage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Slice;

/**
 * Like {@link Page} but contains keyset information.
 *
 * @param  Element type.
 *
 * @author Christian Beikov
 * @since 1.2.0
 */
public interface KeysetAwareSlice extends Slice {

    /**
     * Returns the keyset page associated to the results of this page.
     *
     * @return The keyset page
     */
    public KeysetPage getKeysetPage();

    @Override
    KeysetPageable nextPageable();

    @Override
    KeysetPageable previousPageable();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy