@Test public void testSize() { assertEquals(new Long(1), as1.asRange().size()); assertEquals(new Long(ASN_16_BIT_MAX_VALUE + 1), AsnRange.from(FIRST_ASN).to(Asn.LAST_16_BIT_ASN).size()); assertEquals(new Long(ASN_32_BIT_MAX_VALUE + 1), AsnRange.from(FIRST_ASN).to(Asn.LAST_32_BIT_ASN).size()); }
@Override public Long size() { return (end().value() - start().value()) + 1; }
AsnRange extends AbstractRange<Asn, AsnRange> implements InternetResourceRange<Asn, AsnRange> { @Override public Long size() { return (end().value() - start().value()) + 1; } }
AsnRange extends AbstractRange<Asn, AsnRange> implements InternetResourceRange<Asn, AsnRange> { @Override public Long size() { return (end().value() - start().value()) + 1; } protected  AsnRange(Asn start, Asn end); }
AsnRange extends AbstractRange<Asn, AsnRange> implements InternetResourceRange<Asn, AsnRange> { @Override public Long size() { return (end().value() - start().value()) + 1; } protected  AsnRange(Asn start, Asn end); static AsnRangeBuilder from(Long from); static AsnRangeBuilder from(Asn from); static AsnRangeBuilder from(String from); static AsnRange parse(String text); boolean containsOnly16BitAsns(); boolean containsOnly32BitAsns(); @Override String toString(); @Override Long size(); }
AsnRange extends AbstractRange<Asn, AsnRange> implements InternetResourceRange<Asn, AsnRange> { @Override public Long size() { return (end().value() - start().value()) + 1; } protected  AsnRange(Asn start, Asn end); static AsnRangeBuilder from(Long from); static AsnRangeBuilder from(Asn from); static AsnRangeBuilder from(String from); static AsnRange parse(String text); boolean containsOnly16BitAsns(); boolean containsOnly32BitAsns(); @Override String toString(); @Override Long size();  }