|
Scala IPv4 0.1 API
|
|
be/jvb/iptypes/IpNetwork.scala]
class
IpNetwork(val address : IpAddress, val mask : IpNetworkMask)
extends IpAddressRangeaddress - network address of the networkmask - network mask of the network| Additional Constructor Summary | |
def
|
this
(first : IpAddress, last : IpAddress) : IpNetwork
Construct a network from two addresses. This will create the smallest possible network ("longest prefix match") which contains
both addresses.
|
def
|
this
(network : java.lang.String) : IpNetwork
Construct a network from a CIDR notation (e.g. "192.168.0.0/24" or "192.168.0.0/255.255.255.0")
|
| Values and Variables inherited from IpAddressRange | |
| first, last |
| Method Summary | |
override def
|
toString : java.lang.String |
| Methods inherited from IpAddressRange | |
| contains, contains, overlaps, length, addresses, compare, -, +, equals, canEqual, hashCode |
| Methods inherited from scala.Ordered | |
| scala.Ordered.<, scala.Ordered.>, scala.Ordered.<=, scala.Ordered.>=, scala.Ordered.compareTo |
| Methods inherited from AnyRef | |
| getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Additional Constructor Details |
def
this(network : java.lang.String) : IpNetwork
| Method Details |
|
Scala IPv4 0.1 API
|
|