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