Skip to content
Snippets Groups Projects
Commit 6f9abe7b authored by Jonas Blatt's avatar Jonas Blatt :ant:
Browse files

Fix Check In Contact

parent 9baadd76
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,8 @@ import de.unikoblenz.fgbks.base.utils.boundary.AbstractGrowingBoundary;
/**
* The in contact checker implementation of {@link BoundaryCheckType#IS_IN_CONTACT} for {@link
* AbstractGrowingBoundary}. <br> The check returns true, if the first boundary is in contact with
* the other boundary.
* <br>
* AbstractGrowingBoundary}. <br>
* The check returns true, if the first boundary is in contact with the other boundary. <br>
* E.g: <br>
*
* <ul>
......@@ -49,7 +48,9 @@ public class CheckInContact extends AbstractBoundaryCheck<AbstractGrowingBoundar
*/
public static boolean checkInContact(AbstractGrowingBoundary b1, AbstractGrowingBoundary b2) {
// TODO: check raw types
if (b1.getLowerBound().compareTo(b2.getLowerBound()) <= 0) {
if (b1.getLowerBound().compareTo(b2.getLowerBound()) < 0
|| b1.getLowerBound().compareTo(b2.getLowerBound()) == 0
&& b1.getLowerBoundType() == INCLUSIVE) {
return checkOrdered(b1, b2);
} else {
return checkOrdered(b2, b1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment