public final class IPv4 extends IP<Inet4Address> implements Comparable<IPv4>
Inet4Address
that is comparable to allow its use in other data objects such as TreeMap or
Range| Constructor and Description |
|---|
IPv4(Inet4Address address) |
| Modifier and Type | Method and Description |
|---|---|
static Range<IPv4> |
cidrRange(String cidr)
Parses the provided CIDR string and produces a closed
Range encapsulating all IPv4 addresses between
the network and broadcast addresses in the subnet represented by the CIDR. |
int |
compareTo(IPv4 o) |
static DiscreteDomain<IPv4> |
discreteDomain() |
static IPv4 |
fromString(String addr)
Generates a new IPv4 instance from the provided address.
|
equals, getAddress, hashCode, toByteArray, toStringpublic IPv4(Inet4Address address)
public int compareTo(IPv4 o)
compareTo in interface Comparable<IPv4>public static IPv4 fromString(String addr)
InetAddress.getByName().public static Range<IPv4> cidrRange(String cidr)
Range encapsulating all IPv4 addresses between
the network and broadcast addresses in the subnet represented by the CIDR.public static DiscreteDomain<IPv4> discreteDomain()
Copyright © 2018 Calrissian. All rights reserved.