@Test public void testIntersects() throws Exception { LineRegion line1 = new LineRegion(1, 10); LineRegion line2 = new LineRegion(11, 20); assertFalse(line1.intersects(line2)); line1.setMaxVal(15); assertTrue(line1.intersects(line2)); line1.setMaxVal(30); assertTrue(line1.intersects(line2)); line1.setMinVal(21); assertFalse(line1.intersects(line2)); }
public boolean intersects(LineRegion lineRegion) { return intersects(lineRegion.getMinVal(), lineRegion.getMaxVal()); }
LineRegion { public boolean intersects(LineRegion lineRegion) { return intersects(lineRegion.getMinVal(), lineRegion.getMaxVal()); } }
LineRegion { public boolean intersects(LineRegion lineRegion) { return intersects(lineRegion.getMinVal(), lineRegion.getMaxVal()); } LineRegion(Number val1, Number v2); }
LineRegion { public boolean intersects(LineRegion lineRegion) { return intersects(lineRegion.getMinVal(), lineRegion.getMaxVal()); } LineRegion(Number val1, Number v2); static Number measure(Number val1, Number val2); Number length(); boolean contains(Number value); boolean intersects(LineRegion lineRegion); boolean intersects(Number line2Min, Number line2Max); Number getMinVal(); void setMinVal(Number minVal); Number getMaxVal(); void setMaxVal(Number maxVal); }
LineRegion { public boolean intersects(LineRegion lineRegion) { return intersects(lineRegion.getMinVal(), lineRegion.getMaxVal()); } LineRegion(Number val1, Number v2); static Number measure(Number val1, Number val2); Number length(); boolean contains(Number value); boolean intersects(LineRegion lineRegion); boolean intersects(Number line2Min, Number line2Max); Number getMinVal(); void setMinVal(Number minVal); Number getMaxVal(); void setMaxVal(Number maxVal);  }