public final class Ipv4 extends AbstractIp<Ipv4,Ipv4Range>
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTE_MASK |
static Ipv4 |
FIRST_IPV4_ADDRESS |
static Ipv4 |
LAST_IPV4_ADDRESS |
static long |
MAXIMUM_VALUE |
static long |
MINIMUM_VALUE |
static int |
NUMBER_OF_BITS |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
asBigInteger() |
Ipv4Range |
asRange() |
int |
bitSize() |
int |
compareTo(Ipv4 other) |
boolean |
equals(Object o) |
int |
getCommonPrefixLength(Ipv4 other) |
int |
hashCode() |
boolean |
hasNext() |
boolean |
hasPrevious() |
Ipv4 |
lowerBoundForPrefix(int prefixLength) |
Ipv4 |
next() |
static Ipv4 |
of(BigInteger from) |
static Ipv4 |
of(Long value) |
static Ipv4 |
of(String value) |
static Ipv4 |
parse(String ipv4Address) |
Ipv4 |
previous() |
String |
toString() |
Ipv4 |
upperBoundForPrefix(int prefixLength) |
public static final int BYTE_MASK
public static final int NUMBER_OF_BITS
public static final long MINIMUM_VALUE
public static final long MAXIMUM_VALUE
public static final Ipv4 FIRST_IPV4_ADDRESS
public static final Ipv4 LAST_IPV4_ADDRESS
protected Ipv4(Long value)
public static Ipv4 of(BigInteger from)
public int compareTo(Ipv4 other)
public Ipv4 next()
public Ipv4 previous()
public boolean hasNext()
public boolean hasPrevious()
public Ipv4Range asRange()
public int bitSize()
public BigInteger asBigInteger()
public Ipv4 lowerBoundForPrefix(int prefixLength)
lowerBoundForPrefix in class AbstractIp<Ipv4,Ipv4Range>public Ipv4 upperBoundForPrefix(int prefixLength)
upperBoundForPrefix in class AbstractIp<Ipv4,Ipv4Range>public int getCommonPrefixLength(Ipv4 other)
getCommonPrefixLength in class AbstractIp<Ipv4,Ipv4Range>Copyright © 2016. All rights reserved.