public class IPAddresses extends Object
| Constructor and Description |
|---|
IPAddresses() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.Range<IPAddress> |
fromCIDR(CIDR cidr)
creates a range of ip addresses from CIDR notation
|
static Set<com.google.common.collect.Range<IPAddress>> |
fromInterval(com.google.common.collect.Range<IPAddress> interval)
creates a set of ranges that fit into CIDR ranges from the interval of ip
addresses
|
static com.google.common.collect.Range<IPAddress> |
fromNetmask(Netmask netmask)
creates a range of ip addresses from netmask notation
|
static CIDR |
toCIDR(com.google.common.collect.Range<IPAddress> range)
transforms the range to CIDR notation, if any is possible
|
public static com.google.common.collect.Range<IPAddress> fromCIDR(CIDR cidr)
cidr - CIDR rangepublic static Set<com.google.common.collect.Range<IPAddress>> fromInterval(com.google.common.collect.Range<IPAddress> interval)
interval - the address intervalpublic static com.google.common.collect.Range<IPAddress> fromNetmask(Netmask netmask)
netmask - Netmask rangeCopyright © 2015 Can Bican. All rights reserved.