@Test void testRange() { final Range range = Range.valueOf("bytes=1-10"); assertNotNull(range, "Range is not null!"); assertEquals(1, range.getFrom(), "Check 'from' value"); assertEquals(10, range.getTo(), "Check 'to' value"); }
public Range(final int from, final int to) { this.from = from; this.to = to; }
Range { public Range(final int from, final int to) { this.from = from; this.to = to; } }
Range { public Range(final int from, final int to) { this.from = from; this.to = to; } Range(final int from, final int to); }
Range { public Range(final int from, final int to) { this.from = from; this.to = to; } Range(final int from, final int to); int getFrom(); int getTo(); static Range valueOf(final String value); }
Range { public Range(final int from, final int to) { this.from = from; this.to = to; } Range(final int from, final int to); int getFrom(); int getTo(); static Range valueOf(final String value);  }