be.jvb.iptypes

class IpNetwork

[source: be/jvb/iptypes/IpNetwork.scala]

class IpNetwork(val address : IpAddress, val mask : IpNetworkMask)
extends IpAddressRange
Represents an Ipv4 network (i.e. an address and a mask).
Author
Jan Van Besien
Parameters
address - network address of the network
mask - 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(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")

Method Details
override def toString : java.lang.String
Returns
CIDR notation
Overrides
IpAddressRange.toString


Copyright (c) 2010. All Rights Reserved.