@Test public void testEquals() { Object obj = new OSHDBBoundingBox(0.0, 89.0, 1.0, 90.0); OSHDBBoundingBox instance = new OSHDBBoundingBox(0.0, 89.0, 1.0, 90.0); boolean expResult = true; boolean result = instance.equals(obj); assertEquals(expResult, result); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final OSHDBBoundingBox other = (OSHDBBoundingBox) obj; if (this.minLon != other.minLon) { return false; } if (this.maxLon != other.maxLon) { return false; } if (this.minLat != other.minLat) { return false; } return this.maxLat == other.maxLat; }
OSHDBBoundingBox implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final OSHDBBoundingBox other = (OSHDBBoundingBox) obj; if (this.minLon != other.minLon) { return false; } if (this.maxLon != other.maxLon) { return false; } if (this.minLat != other.minLat) { return false; } return this.maxLat == other.maxLat; } }
OSHDBBoundingBox implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final OSHDBBoundingBox other = (OSHDBBoundingBox) obj; if (this.minLon != other.minLon) { return false; } if (this.maxLon != other.maxLon) { return false; } if (this.minLat != other.minLat) { return false; } return this.maxLat == other.maxLat; } 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 boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final OSHDBBoundingBox other = (OSHDBBoundingBox) obj; if (this.minLon != other.minLon) { return false; } if (this.maxLon != other.maxLon) { return false; } if (this.minLat != other.minLat) { return false; } return this.maxLat == other.maxLat; } 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 boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final OSHDBBoundingBox other = (OSHDBBoundingBox) obj; if (this.minLon != other.minLon) { return false; } if (this.maxLon != other.maxLon) { return false; } if (this.minLat != other.minLat) { return false; } return this.maxLat == other.maxLat; } 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; }