@Test public void equals() throws Exception { Bounds bounds = new Bounds(new Location(null, 0.0, 0.0, 0.0), new Location(null, 10.0, 10.0, 10.0)); Bounds otherBounds = new Bounds(new Location(null, 0.0, 0.0, 0.0), new Location(null, 10.0, 10.0, 10.0)); assertTrue(bounds.equals(otherBounds)); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Bounds)) { return false; } Bounds bounds = (Bounds) o; return min != null ? min.equals(bounds.min) : bounds.min == null && (max != null ? max.equals(bounds.max) : bounds.max == null); }
Bounds { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Bounds)) { return false; } Bounds bounds = (Bounds) o; return min != null ? min.equals(bounds.min) : bounds.min == null && (max != null ? max.equals(bounds.max) : bounds.max == null); } }
Bounds { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Bounds)) { return false; } Bounds bounds = (Bounds) o; return min != null ? min.equals(bounds.min) : bounds.min == null && (max != null ? max.equals(bounds.max) : bounds.max == null); } Bounds(Location min, Location max); }
Bounds { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Bounds)) { return false; } Bounds bounds = (Bounds) o; return min != null ? min.equals(bounds.min) : bounds.min == null && (max != null ? max.equals(bounds.max) : bounds.max == null); } Bounds(Location min, Location max); void setWorld( World world ); double getWidth(); double getHeight(); double getLength(); double getArea(); boolean within(Location location); boolean withinIncludeTopOfMine(Location location); boolean withinSameWorld(Location location); boolean within(Location location, long radius); double getDistance(); double getDistance(Location location); double getDistance3d(Location location); String getDimensions(); Location getMin(); Location getMax(); Location getCenter(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); int getxBlockMin(); int getxBlockMax(); int getyBlockMin(); int getyBlockMax(); int getzBlockMin(); int getzBlockMax(); double getxMin(); double getxMax(); double getyMin(); double getyMax(); double getzMin(); double getzMax(); int getTotalBlockCount(); }
Bounds { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Bounds)) { return false; } Bounds bounds = (Bounds) o; return min != null ? min.equals(bounds.min) : bounds.min == null && (max != null ? max.equals(bounds.max) : bounds.max == null); } Bounds(Location min, Location max); void setWorld( World world ); double getWidth(); double getHeight(); double getLength(); double getArea(); boolean within(Location location); boolean withinIncludeTopOfMine(Location location); boolean withinSameWorld(Location location); boolean within(Location location, long radius); double getDistance(); double getDistance(Location location); double getDistance3d(Location location); String getDimensions(); Location getMin(); Location getMax(); Location getCenter(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); int getxBlockMin(); int getxBlockMax(); int getyBlockMin(); int getyBlockMax(); int getzBlockMin(); int getzBlockMax(); double getxMin(); double getxMax(); double getyMin(); double getyMax(); double getzMin(); double getzMax(); int getTotalBlockCount();  }