@Test public void testHasNext() { assertTrue(Ipv4.FIRST_IPV4_ADDRESS.hasNext()); assertTrue(Ipv4.of("192.168.0.1").hasNext()); assertFalse(Ipv4.LAST_IPV4_ADDRESS.hasNext()); }
@Override public boolean hasNext() { return this.compareTo(LAST_IPV4_ADDRESS) < 0; }
Ipv4 extends AbstractIp<Ipv4, Ipv4Range> { @Override public boolean hasNext() { return this.compareTo(LAST_IPV4_ADDRESS) < 0; } }
Ipv4 extends AbstractIp<Ipv4, Ipv4Range> { @Override public boolean hasNext() { return this.compareTo(LAST_IPV4_ADDRESS) < 0; } protected  Ipv4(Long value); }
Ipv4 extends AbstractIp<Ipv4, Ipv4Range> { @Override public boolean hasNext() { return this.compareTo(LAST_IPV4_ADDRESS) < 0; } protected  Ipv4(Long value); static Ipv4 of(BigInteger from); static Ipv4 of(Long value); static Ipv4 of(String value); static Ipv4 parse(String ipv4Address); @Override int compareTo(Ipv4 other); @Override String toString(); @Override Ipv4 next(); @Override Ipv4 previous(); @Override boolean hasNext(); @Override boolean hasPrevious(); @Override Ipv4Range asRange(); @Override int bitSize(); @Override BigInteger asBigInteger(); @Override Ipv4 lowerBoundForPrefix(int prefixLength); @Override Ipv4 upperBoundForPrefix(int prefixLength); @Override int getCommonPrefixLength(Ipv4 other); @Override boolean equals(Object o); @Override int hashCode(); }
Ipv4 extends AbstractIp<Ipv4, Ipv4Range> { @Override public boolean hasNext() { return this.compareTo(LAST_IPV4_ADDRESS) < 0; } protected  Ipv4(Long value); static Ipv4 of(BigInteger from); static Ipv4 of(Long value); static Ipv4 of(String value); static Ipv4 parse(String ipv4Address); @Override int compareTo(Ipv4 other); @Override String toString(); @Override Ipv4 next(); @Override Ipv4 previous(); @Override boolean hasNext(); @Override boolean hasPrevious(); @Override Ipv4Range asRange(); @Override int bitSize(); @Override BigInteger asBigInteger(); @Override Ipv4 lowerBoundForPrefix(int prefixLength); @Override Ipv4 upperBoundForPrefix(int prefixLength); @Override int getCommonPrefixLength(Ipv4 other); @Override boolean equals(Object o); @Override int hashCode(); static final int BYTE_MASK; static final int NUMBER_OF_BITS; static final long MINIMUM_VALUE; static final long MAXIMUM_VALUE; static final Ipv4 FIRST_IPV4_ADDRESS; static final Ipv4 LAST_IPV4_ADDRESS; }