@Test public void testHashCode() { StoreImage uut = new StoreImage(IMG_ID1, IMG_DATA.getBytes(), ImageSizePreset.ICON.getSize()); int result = 31 + (int) (IMG_ID1 ^ (IMG_ID1 >>> 32)); assertEquals(uut.hashCode(), result); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (int) (id ^ (id >>> 32)); return result; }
StoreImage implements ICachable<StoreImage> { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (int) (id ^ (id >>> 32)); return result; } }
StoreImage implements ICachable<StoreImage> { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (int) (id ^ (id >>> 32)); return result; } StoreImage(final long id, BufferedImage image, ImageSize size);  StoreImage(final long id, byte[] base64, ImageSize size);  StoreImage(StoreImage image); }
StoreImage implements ICachable<StoreImage> { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (int) (id ^ (id >>> 32)); return result; } StoreImage(final long id, BufferedImage image, ImageSize size);  StoreImage(final long id, byte[] base64, ImageSize size);  StoreImage(StoreImage image); long getId(); BufferedImage getImage(); ImageSize getSize(); @Override long getByteSize(); String getBase64(); byte[] getByteArray(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
StoreImage implements ICachable<StoreImage> { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (int) (id ^ (id >>> 32)); return result; } StoreImage(final long id, BufferedImage image, ImageSize size);  StoreImage(final long id, byte[] base64, ImageSize size);  StoreImage(StoreImage image); long getId(); BufferedImage getImage(); ImageSize getSize(); @Override long getByteSize(); String getBase64(); byte[] getByteArray(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final String STORE_IMAGE_FORMAT; static final String STORE_IMAGE_DATA_STRING; }