@Test void testInvalidNumbers3() { assertNull(Range.valueOf("bytes=1-foo"), "Check invalid values"); }
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);  }