@Test public void testHasNext() { assertTrue(Asn.FIRST_ASN.hasNext()); assertTrue(Asn.LAST_16_BIT_ASN.hasNext()); assertFalse(Asn.LAST_32_BIT_ASN.hasNext()); }
@Override public boolean hasNext() { return this.compareTo(LAST_32_BIT_ASN) < 0; }
Asn implements SingleInternetResource<Asn, AsnRange>, Comparable<Asn> { @Override public boolean hasNext() { return this.compareTo(LAST_32_BIT_ASN) < 0; } }
Asn implements SingleInternetResource<Asn, AsnRange>, Comparable<Asn> { @Override public boolean hasNext() { return this.compareTo(LAST_32_BIT_ASN) < 0; } Asn(Long value); }
Asn implements SingleInternetResource<Asn, AsnRange>, Comparable<Asn> { @Override public boolean hasNext() { return this.compareTo(LAST_32_BIT_ASN) < 0; } Asn(Long value); static Asn of(Long value); static Asn of(String value); static Asn parse(String text); boolean is16Bit(); boolean is32Bit(); @Override int compareTo(Asn other); @Override Asn next(); @Override Asn previous(); @Override boolean hasNext(); @Override boolean hasPrevious(); @Override String toString(); @Override AsnRange asRange(); @Override int bitSize(); @Override BigInteger asBigInteger(); @Override boolean equals(Object o); @Override int hashCode(); }
Asn implements SingleInternetResource<Asn, AsnRange>, Comparable<Asn> { @Override public boolean hasNext() { return this.compareTo(LAST_32_BIT_ASN) < 0; } Asn(Long value); static Asn of(Long value); static Asn of(String value); static Asn parse(String text); boolean is16Bit(); boolean is32Bit(); @Override int compareTo(Asn other); @Override Asn next(); @Override Asn previous(); @Override boolean hasNext(); @Override boolean hasPrevious(); @Override String toString(); @Override AsnRange asRange(); @Override int bitSize(); @Override BigInteger asBigInteger(); @Override boolean equals(Object o); @Override int hashCode(); static final long ASN_MIN_VALUE; static final long ASN_16_BIT_MAX_VALUE; static final long ASN_32_BIT_MAX_VALUE; static final Asn FIRST_ASN; static final Asn LAST_16_BIT_ASN; static final Asn LAST_32_BIT_ASN; static final int NUMBER_OF_BITS; }