@Test public void testHashCode() { OSHDBBoundingBox instance = new OSHDBBoundingBox(0.0, 89.0, 1.0, 90.0); int expResult = 748664391; int result = instance.hashCode(); assertEquals(expResult, result); }
@Override public int hashCode() { int hash = 7; hash = 79 * hash + (int) (this.minLon ^ (this.minLon >>> 32)); hash = 79 * hash + (int) (this.maxLon ^ (this.maxLon >>> 32)); hash = 79 * hash + (int) (this.minLat ^ (this.minLat >>> 32)); hash = 79 * hash + (int) (this.maxLat ^ (this.maxLat >>> 32)); return hash; }
OSHDBBoundingBox implements Serializable { @Override public int hashCode() { int hash = 7; hash = 79 * hash + (int) (this.minLon ^ (this.minLon >>> 32)); hash = 79 * hash + (int) (this.maxLon ^ (this.maxLon >>> 32)); hash = 79 * hash + (int) (this.minLat ^ (this.minLat >>> 32)); hash = 79 * hash + (int) (this.maxLat ^ (this.maxLat >>> 32)); return hash; } }
OSHDBBoundingBox implements Serializable { @Override public int hashCode() { int hash = 7; hash = 79 * hash + (int) (this.minLon ^ (this.minLon >>> 32)); hash = 79 * hash + (int) (this.maxLon ^ (this.maxLon >>> 32)); hash = 79 * hash + (int) (this.minLat ^ (this.minLat >>> 32)); hash = 79 * hash + (int) (this.maxLat ^ (this.maxLat >>> 32)); return hash; } OSHDBBoundingBox(long minLon, long minLat, long maxLon, long maxLat);  OSHDBBoundingBox(double minLon, double minLat, double maxLon, double maxLat);  OSHDBBoundingBox(int minLon, int minLat, int maxLon, int maxLat); }
OSHDBBoundingBox implements Serializable { @Override public int hashCode() { int hash = 7; hash = 79 * hash + (int) (this.minLon ^ (this.minLon >>> 32)); hash = 79 * hash + (int) (this.maxLon ^ (this.maxLon >>> 32)); hash = 79 * hash + (int) (this.minLat ^ (this.minLat >>> 32)); hash = 79 * hash + (int) (this.maxLat ^ (this.maxLat >>> 32)); return hash; } OSHDBBoundingBox(long minLon, long minLat, long maxLon, long maxLat);  OSHDBBoundingBox(double minLon, double minLat, double maxLon, double maxLat);  OSHDBBoundingBox(int minLon, int minLat, int maxLon, int maxLat); static OSHDBBoundingBox intersect(OSHDBBoundingBox first, OSHDBBoundingBox second); static OVERLAP overlap(OSHDBBoundingBox a, OSHDBBoundingBox b); void set(long minLon, long minLat, long maxLon, long maxLat); void set(OSHDBBoundingBox bbox); void add(OSHDBBoundingBox bbox); double getMinLon(); long getMinLonLong(); double getMaxLon(); long getMaxLonLong(); double getMinLat(); long getMinLatLong(); double getMaxLat(); long getMaxLatLong(); long[] getLon(); long[] getLat(); boolean intersects(OSHDBBoundingBox otherBbox); boolean isInside(OSHDBBoundingBox otherBbox); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); boolean isPoint(); boolean isValid(); }
OSHDBBoundingBox implements Serializable { @Override public int hashCode() { int hash = 7; hash = 79 * hash + (int) (this.minLon ^ (this.minLon >>> 32)); hash = 79 * hash + (int) (this.maxLon ^ (this.maxLon >>> 32)); hash = 79 * hash + (int) (this.minLat ^ (this.minLat >>> 32)); hash = 79 * hash + (int) (this.maxLat ^ (this.maxLat >>> 32)); return hash; } OSHDBBoundingBox(long minLon, long minLat, long maxLon, long maxLat);  OSHDBBoundingBox(double minLon, double minLat, double maxLon, double maxLat);  OSHDBBoundingBox(int minLon, int minLat, int maxLon, int maxLat); static OSHDBBoundingBox intersect(OSHDBBoundingBox first, OSHDBBoundingBox second); static OVERLAP overlap(OSHDBBoundingBox a, OSHDBBoundingBox b); void set(long minLon, long minLat, long maxLon, long maxLat); void set(OSHDBBoundingBox bbox); void add(OSHDBBoundingBox bbox); double getMinLon(); long getMinLonLong(); double getMaxLon(); long getMaxLonLong(); double getMinLat(); long getMinLatLong(); double getMaxLat(); long getMaxLatLong(); long[] getLon(); long[] getLat(); boolean intersects(OSHDBBoundingBox otherBbox); boolean isInside(OSHDBBoundingBox otherBbox); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); boolean isPoint(); boolean isValid(); static final OSHDBBoundingBox EMPTY; static final OSHDBBoundingBox INVALID; }