@Test public void testToString() { Paging paging = new Paging(42, 5, 1024, 25); String s = paging.toString(); assertThat(s).contains("size=" + paging.getSize(), "number=" + paging.getNumber(), "totalElements=" + paging.getTotalElements(), "totalPages=" + paging.getTotalPages()); }
@Override public String toString() { return "Paging{" + "size=" + size + ", number=" + number + ", totalElements=" + totalElements + ", totalPages=" + totalPages + '}'; }
Paging { @Override public String toString() { return "Paging{" + "size=" + size + ", number=" + number + ", totalElements=" + totalElements + ", totalPages=" + totalPages + '}'; } }
Paging { @Override public String toString() { return "Paging{" + "size=" + size + ", number=" + number + ", totalElements=" + totalElements + ", totalPages=" + totalPages + '}'; } @JsonCreator  Paging(@JsonProperty("size") int size, @JsonProperty("number") int number,
                  @JsonProperty("totalElements") int totalElements, @JsonProperty("totalPages") int totalPages); }
Paging { @Override public String toString() { return "Paging{" + "size=" + size + ", number=" + number + ", totalElements=" + totalElements + ", totalPages=" + totalPages + '}'; } @JsonCreator  Paging(@JsonProperty("size") int size, @JsonProperty("number") int number,
                  @JsonProperty("totalElements") int totalElements, @JsonProperty("totalPages") int totalPages); int getSize(); int getNumber(); int getTotalElements(); int getTotalPages(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Paging { @Override public String toString() { return "Paging{" + "size=" + size + ", number=" + number + ", totalElements=" + totalElements + ", totalPages=" + totalPages + '}'; } @JsonCreator  Paging(@JsonProperty("size") int size, @JsonProperty("number") int number,
                  @JsonProperty("totalElements") int totalElements, @JsonProperty("totalPages") int totalPages); int getSize(); int getNumber(); int getTotalElements(); int getTotalPages(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }