1 package de.dlr.shepard.util; 2 3 import lombok.AllArgsConstructor; 4 import lombok.EqualsAndHashCode; 5 import lombok.Getter; 6 import lombok.ToString; 7 8 @Getter 9 @ToString 10 @EqualsAndHashCode 11 @AllArgsConstructor 12 public class PaginationHelper { 13 14 private int page; 15 private int size; 16 17 public int getOffset() { 18 return page * size; 19 } 20 }