fr.ouestfrance.querydsl.postgrest.model.PageImpl Maven / Gradle / Ivy
package fr.ouestfrance.querydsl.postgrest.model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* Concrete implementation of a page
*
* @param type of the page
*/
@Getter
@AllArgsConstructor
public class PageImpl implements Page {
/**
* Elements
*/
private final List data;
/**
* Request information
*/
private Pageable pageable;
/**
* Total elements
*/
private long totalElements;
/**
* Total pages
*/
private int totalPages;
}