org.defendev.common.domain.resrep.CollectionMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-jdk Show documentation
Show all versions of common-jdk Show documentation
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;
}
}