@Test public void testHashCode() { assertHashCodeContract( new PageData(new byte[] { 1, 2, 3 }, "image/png"), new PageData(new byte[] { 1, 2, 3 }, "image/png")); }
@Override public int hashCode() { return new HashCodeBuilder().append(data).append(contentType).toHashCode(); }
PageData { @Override public int hashCode() { return new HashCodeBuilder().append(data).append(contentType).toHashCode(); } }
PageData { @Override public int hashCode() { return new HashCodeBuilder().append(data).append(contentType).toHashCode(); } PageData(byte[] data, String contentType); }
PageData { @Override public int hashCode() { return new HashCodeBuilder().append(data).append(contentType).toHashCode(); } PageData(byte[] data, String contentType); byte[] getData(); @Override boolean equals(Object o); @Override int hashCode(); }
PageData { @Override public int hashCode() { return new HashCodeBuilder().append(data).append(contentType).toHashCode(); } PageData(byte[] data, String contentType); byte[] getData(); @Override boolean equals(Object o); @Override int hashCode();  }