@Test public void testValueOf() { Ranges ranges = new Ranges(newArrayList(new Range(49, 100), new Range(150, 250))); when(headerDelegate.fromString("bytes=49-100,150-250")).thenReturn(ranges); assertSame(ranges, Ranges.valueOf("bytes=49-100,150-250")); }
public static Ranges valueOf(String range) { return RuntimeDelegate.getInstance().createHeaderDelegate(Ranges.class).fromString(range); }
Ranges { public static Ranges valueOf(String range) { return RuntimeDelegate.getInstance().createHeaderDelegate(Ranges.class).fromString(range); } }
Ranges { public static Ranges valueOf(String range) { return RuntimeDelegate.getInstance().createHeaderDelegate(Ranges.class).fromString(range); } Ranges(List<Range> ranges); }
Ranges { public static Ranges valueOf(String range) { return RuntimeDelegate.getInstance().createHeaderDelegate(Ranges.class).fromString(range); } Ranges(List<Range> ranges); static Ranges valueOf(String range); List<Range> getRanges(); @Override boolean equals(Object o); @Override int hashCode(); }
Ranges { public static Ranges valueOf(String range) { return RuntimeDelegate.getInstance().createHeaderDelegate(Ranges.class).fromString(range); } Ranges(List<Range> ranges); static Ranges valueOf(String range); List<Range> getRanges(); @Override boolean equals(Object o); @Override int hashCode();  }