@Test public void testLength() throws Exception { LineRegion lr = new LineRegion(0, 10); assertEquals(10d, lr.length().doubleValue(), 0); lr = new LineRegion(-5, 5); assertEquals(10d, lr.length().doubleValue(), 0); }
public Number length() { return maxVal.doubleValue() - minVal.doubleValue(); }
LineRegion { public Number length() { return maxVal.doubleValue() - minVal.doubleValue(); } }
LineRegion { public Number length() { return maxVal.doubleValue() - minVal.doubleValue(); } LineRegion(Number val1, Number v2); }
LineRegion { public Number length() { return maxVal.doubleValue() - minVal.doubleValue(); } 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 Number length() { return maxVal.doubleValue() - minVal.doubleValue(); } 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);  }