An IP network. More...
Public Member Functions | |
| String | getAddress () |
| Gets the address. More... | |
| String | getMask () |
| Gets the mask. More... | |
| int | getPrefixLength () |
| Gets the prefix length. More... | |
| boolean | matches (String address) |
| Checks if an address exists in this network. More... | |
| String | toString () |
| Returns a string that represents this instance. More... | |
Static Public Member Functions | |
| static fm.liveswitch.IPNetwork | parse (String cidr) |
| Parses a CIDR. More... | |
| static boolean | tryParse (String cidr, fm.liveswitch.Holder< fm.liveswitch.IPNetwork > network) |
| Tries to parse a CIDR. More... | |
An IP network.
| String fm.liveswitch.IPNetwork.getAddress | ( | ) |
Gets the address.
| String fm.liveswitch.IPNetwork.getMask | ( | ) |
Gets the mask.
| int fm.liveswitch.IPNetwork.getPrefixLength | ( | ) |
Gets the prefix length.
| boolean fm.liveswitch.IPNetwork.matches | ( | String | address | ) |
Checks if an address exists in this network.
| address | The address. |
|
static |
Parses a CIDR.
| cidr | The CIDR. |
| String fm.liveswitch.IPNetwork.toString | ( | ) |
Returns a string that represents this instance.
|
static |
Tries to parse a CIDR.
| cidr | The CIDR. |
| network | The IP network. |