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

org.defendev.common.domain.resrep.CollectionMeta Maven / Gradle / Ivy

Go to download

Common utils purely based on JDK and no other dependencies. Only exception being for org.jetbrains:annotations for building stratgic Kotlin language compatibility.Another only-exception is Apache Commons Lang3.

The newest version!
package org.defendev.common.domain.resrep;



public class CollectionMeta implements ICollectionMeta {

    private final int pageNumber;

    private final int pageSize;

    private final int totalElements;

    public CollectionMeta(int pageNumber, int pageSize, int totalElements) {
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
        this.totalElements = totalElements;
    }

    @Override
    public Integer getPageNumber() {
        return pageNumber;
    }

    @Override
    public Integer getPageSize() {
        return pageSize;
    }

    @Override
    public Integer getTotalElements() {
        return totalElements;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy