@Test void testInvalidNumbers() { assertNull(Range.valueOf("bytes=1-15.5"), "Check invalid numbers"); }
public static Range valueOf(final String value) { final int[] vals = parse(value); if (vals.length == 2) { return new Range(vals[0], vals[1]); } return null; }
Range { public static Range valueOf(final String value) { final int[] vals = parse(value); if (vals.length == 2) { return new Range(vals[0], vals[1]); } return null; } }
Range { public static Range valueOf(final String value) { final int[] vals = parse(value); if (vals.length == 2) { return new Range(vals[0], vals[1]); } return null; } Range(final int from, final int to); }
Range { public static Range valueOf(final String value) { final int[] vals = parse(value); if (vals.length == 2) { return new Range(vals[0], vals[1]); } return null; } Range(final int from, final int to); int getFrom(); int getTo(); static Range valueOf(final String value); }
Range { public static Range valueOf(final String value) { final int[] vals = parse(value); if (vals.length == 2) { return new Range(vals[0], vals[1]); } return null; } Range(final int from, final int to); int getFrom(); int getTo(); static Range valueOf(final String value);  }