@Test(expected = IllegalArgumentException.class) public void shouldFailToParseDecimalNotationWhenSingleResource() { Ipv4Range.parseDecimalNotation("1"); }
public static Ipv4Range parseDecimalNotation(String range) { int idx = range.indexOf(DASH); Validate.isTrue(idx != -1, "Argument [" + range + "] does not comply with the decimal range notation"); long start = Long.valueOf(range.substring(0, idx)); long end = Long.valueOf(range.substring(idx + 1, range.length())); return Ipv4Range.from(start).to(end); }
Ipv4Range extends AbstractIpRange<Ipv4, Ipv4Range> { public static Ipv4Range parseDecimalNotation(String range) { int idx = range.indexOf(DASH); Validate.isTrue(idx != -1, "Argument [" + range + "] does not comply with the decimal range notation"); long start = Long.valueOf(range.substring(0, idx)); long end = Long.valueOf(range.substring(idx + 1, range.length())); return Ipv4Range.from(start).to(end); } }
Ipv4Range extends AbstractIpRange<Ipv4, Ipv4Range> { public static Ipv4Range parseDecimalNotation(String range) { int idx = range.indexOf(DASH); Validate.isTrue(idx != -1, "Argument [" + range + "] does not comply with the decimal range notation"); long start = Long.valueOf(range.substring(0, idx)); long end = Long.valueOf(range.substring(idx + 1, range.length())); return Ipv4Range.from(start).to(end); } protected  Ipv4Range(Ipv4 start, Ipv4 end); }
Ipv4Range extends AbstractIpRange<Ipv4, Ipv4Range> { public static Ipv4Range parseDecimalNotation(String range) { int idx = range.indexOf(DASH); Validate.isTrue(idx != -1, "Argument [" + range + "] does not comply with the decimal range notation"); long start = Long.valueOf(range.substring(0, idx)); long end = Long.valueOf(range.substring(idx + 1, range.length())); return Ipv4Range.from(start).to(end); } protected  Ipv4Range(Ipv4 start, Ipv4 end); static Ipv4RangeBuilder from(Ipv4 from); static Ipv4RangeBuilder from(BigInteger from); static Ipv4RangeBuilder from(Long from); static Ipv4RangeBuilder from(String from); static Ipv4Range parse(String range); static Ipv4Range parseCidr(String cidrString); static Ipv4Range parseDecimalNotation(String range); @Override Long size(); }
Ipv4Range extends AbstractIpRange<Ipv4, Ipv4Range> { public static Ipv4Range parseDecimalNotation(String range) { int idx = range.indexOf(DASH); Validate.isTrue(idx != -1, "Argument [" + range + "] does not comply with the decimal range notation"); long start = Long.valueOf(range.substring(0, idx)); long end = Long.valueOf(range.substring(idx + 1, range.length())); return Ipv4Range.from(start).to(end); } protected  Ipv4Range(Ipv4 start, Ipv4 end); static Ipv4RangeBuilder from(Ipv4 from); static Ipv4RangeBuilder from(BigInteger from); static Ipv4RangeBuilder from(Long from); static Ipv4RangeBuilder from(String from); static Ipv4Range parse(String range); static Ipv4Range parseCidr(String cidrString); static Ipv4Range parseDecimalNotation(String range); @Override Long size();  }