
org.seedstack.business.pagination.dsl.LimitPicker Maven / Gradle / Ivy
/*
* Copyright © 2013-2024, The SeedStack authors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.business.pagination.dsl;
import org.seedstack.business.pagination.Slice;
/**
* An element of the {@link Paginator} DSL allowing to specify a limit on the number of objects
* returned, in the case of an offset-based pagination.
*
* @param the type of the slice.
* @param the type of the paginated object.
*/
public interface LimitPicker, T> extends SpecificationPicker {
/**
* Specify a limit on the number of objects returned.
*
* @param limit the limit.
* @return the next operation of the paginator DSL, allowing to pick a specification for selecting
* objects returned from the repository.
*/
SpecificationPicker limit(long limit);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy