Range { public boolean isEmpty() { return Double.isNaN(min); }  void expand(double value); boolean isEmpty(); double range(); @NonNull @Override String toString(); public double min; public double max; }
@Test public void isEmpty() { Range range = new Range(); assertTrue(range.isEmpty()); range.expand(3.14); assertFalse(range.isEmpty()); }