package com.iqser.red.service.persistence.service.v1.api.shared.model.common;

import java.util.ArrayList;
import java.util.List;

import com.iqser.red.service.persistence.service.v1.api.shared.model.audit.AuditModel;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class Page<T> {

    @Builder.Default
    protected List<T> elements = new ArrayList<>();
    protected long totalHits;
    protected int page;
    protected int pageSize;

    public List<T> getData(){
        return this.elements;
    }

}
