@Test public void toStringTest() { BoundingBox boundingBox = new BoundingBox(MIN_LATITUDE, MIN_LONGITUDE, MAX_LATITUDE, MAX_LONGITUDE); Assert.assertEquals(BOUNDING_BOX_TO_STRING, boundingBox.toString()); }
@Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("minLatitude="); stringBuilder.append(this.minLatitude); stringBuilder.append(", minLongitude="); stringBuilder.append(this.minLongitude); stringBuilder.append(", maxLatitude="); stringBuilder.append(this.maxLatitude); stringBuilder.append(", maxLongitude="); stringBuilder.append(this.maxLongitude); return stringBuilder.toString(); }
BoundingBox implements Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("minLatitude="); stringBuilder.append(this.minLatitude); stringBuilder.append(", minLongitude="); stringBuilder.append(this.minLongitude); stringBuilder.append(", maxLatitude="); stringBuilder.append(this.maxLatitude); stringBuilder.append(", maxLongitude="); stringBuilder.append(this.maxLongitude); return stringBuilder.toString(); } }
BoundingBox implements Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("minLatitude="); stringBuilder.append(this.minLatitude); stringBuilder.append(", minLongitude="); stringBuilder.append(this.minLongitude); stringBuilder.append(", maxLatitude="); stringBuilder.append(this.maxLatitude); stringBuilder.append(", maxLongitude="); stringBuilder.append(this.maxLongitude); return stringBuilder.toString(); } BoundingBox(double minLatitude, double minLongitude, double maxLatitude, double maxLongitude); }
BoundingBox implements Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("minLatitude="); stringBuilder.append(this.minLatitude); stringBuilder.append(", minLongitude="); stringBuilder.append(this.minLongitude); stringBuilder.append(", maxLatitude="); stringBuilder.append(this.maxLatitude); stringBuilder.append(", maxLongitude="); stringBuilder.append(this.maxLongitude); return stringBuilder.toString(); } BoundingBox(double minLatitude, double minLongitude, double maxLatitude, double maxLongitude); static BoundingBox fromString(String boundingBoxString); boolean contains(GeoPoint geoPoint); @Override boolean equals(Object obj); GeoPoint getCenterPoint(); double getLatitudeSpan(); double getLongitudeSpan(); @Override int hashCode(); boolean intersects(BoundingBox boundingBox); @Override String toString(); }
BoundingBox implements Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("minLatitude="); stringBuilder.append(this.minLatitude); stringBuilder.append(", minLongitude="); stringBuilder.append(this.minLongitude); stringBuilder.append(", maxLatitude="); stringBuilder.append(this.maxLatitude); stringBuilder.append(", maxLongitude="); stringBuilder.append(this.maxLongitude); return stringBuilder.toString(); } BoundingBox(double minLatitude, double minLongitude, double maxLatitude, double maxLongitude); static BoundingBox fromString(String boundingBoxString); boolean contains(GeoPoint geoPoint); @Override boolean equals(Object obj); GeoPoint getCenterPoint(); double getLatitudeSpan(); double getLongitudeSpan(); @Override int hashCode(); boolean intersects(BoundingBox boundingBox); @Override String toString(); final double maxLatitude; final double maxLongitude; final double minLatitude; final double minLongitude; }