### Question:
GridDef { @Override public int hashCode() { int result = width; result = 31 * result + height; result = 31 * result + time; long temp = northing != 0.0 ? Double.doubleToLongBits(northing) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); temp = easting != 0.0 ? Double.doubleToLongBits(easting) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); temp = resolutionX != 0.0 ? Double.doubleToLongBits(resolutionX) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); temp = resolutionY != 0.0 ? Double.doubleToLongBits(resolutionY) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); return result; } private  GridDef(int width, int height, double easting, double northing, double resolutionX, double resolutionY); static GridDef createGlobal(double resolution); static GridDef createGlobal(int width, int height); static GridDef createRaster(int width, int height); int getTime(); int getWidth(); int getHeight(); double getEasting(); double getNorthing(); double getResolutionX(); double getResolutionY(); double getResolution(); int wrapX(int x); double getCenterLon(int x); double getCenterLat(int y); final double getDiagonal(int x, int y); final int getGridX(double lon, boolean crop); final int getGridY(double lat, boolean crop); Rectangle2D getLonLatRectangle(int x, int y); Rectangle getGridRectangle(Rectangle2D lonLatRectangle); Rectangle getGridRectangle(double minLon, double minLat, double maxLon, double maxLat); Rectangle getGridRectangle(int x, int y, GridDef gridDef); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testHashCode() { int hashCode = gridDef05.hashCode(); assertEquals(-480847887, hashCode); hashCode = gridDef5.hashCode(); assertEquals(1939683365, hashCode); hashCode = gridDef90.hashCode(); assertEquals(885044675, hashCode); }