| Package | Description |
|---|---|
| net.bican.iplib |
| Modifier and Type | Method and Description |
|---|---|
IPAddress |
CIDR.getFirst() |
static IPAddress |
IPAddress.getInstance(InetAddress addr)
return a new instance of
IPAddress. |
IPAddress |
Netmask.getIpAddress() |
IPAddress |
CIDR.getIpAddress() |
IPAddress |
CIDR.getLast() |
IPAddress |
Netmask.getNetmask() |
IPAddress |
AddressIterable.next() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.Range<IPAddress> |
IPAddresses.fromCIDR(CIDR cidr)
creates a range of ip addresses from CIDR notation
|
static Set<com.google.common.collect.Range<IPAddress>> |
IPAddresses.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> |
IPAddresses.fromNetmask(Netmask netmask)
creates a range of ip addresses from netmask notation
|
net.bican.iplib.LongDiscreteDomain<IPAddress> |
IPAddress.getDomain() |
Iterator<IPAddress> |
AddressIterable.iterator() |
| Modifier and Type | Method and Description |
|---|---|
int |
IPAddress.compareTo(IPAddress o) |
void |
Netmask.setIpAddress(IPAddress ipAddress) |
void |
CIDR.setIpAddress(IPAddress ipAddress) |
void |
Netmask.setNetmask(IPAddress netmask) |
| Modifier and Type | Method and Description |
|---|---|
static Set<com.google.common.collect.Range<IPAddress>> |
IPAddresses.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 CIDR |
IPAddresses.toCIDR(com.google.common.collect.Range<IPAddress> range)
transforms the range to CIDR notation, if any is possible
|
| Constructor and Description |
|---|
CIDR(IPAddress ipAddress,
int prefix) |
Netmask(IPAddress ipAddress,
IPAddress netmask) |
| Constructor and Description |
|---|
AddressIterable(com.google.common.collect.Range<IPAddress> range) |
Copyright © 2015 Can Bican. All rights reserved.