class Paging {

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Paging paging = (Paging) o;
        return getSize() == paging.getSize() &&
                getNumber() == paging.getNumber() &&
                getTotalElements() == paging.getTotalElements() &&
                getTotalPages() == paging.getTotalPages();
    }

    @JsonCreator public  Paging(@JsonProperty("size") int size, @JsonProperty("number") int number,
                  @JsonProperty("totalElements") int totalElements, @JsonProperty("totalPages") int totalPages);

}