@Test public void testSize() { assertEquals(new Long(1), ip1.asRange().size()); assertEquals(new Long(MAXIMUM_VALUE + 1), Ipv4Range.from(FIRST_IPV4_ADDRESS).to(LAST_IPV4_ADDRESS).size()); }
@Override public Long size() { return (end().value() - start().value()) + 1; }
Ipv4Range extends AbstractIpRange<Ipv4, Ipv4Range> { @Override public Long size() { return (end().value() - start().value()) + 1; } }
Ipv4Range extends AbstractIpRange<Ipv4, Ipv4Range> { @Override public Long size() { return (end().value() - start().value()) + 1; } protected  Ipv4Range(Ipv4 start, Ipv4 end); }
Ipv4Range extends AbstractIpRange<Ipv4, Ipv4Range> { @Override public Long size() { return (end().value() - start().value()) + 1; } 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> { @Override public Long size() { return (end().value() - start().value()) + 1; } 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();  }