Cidr

object Cidr
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A <: IpAddress](address: A, prefixBits: Int): Cidr[A]

Constructs a CIDR from the supplied IP address and prefix bit count. Note if prefixBits is less than 0, the built Cidr will have prefixBits set to 0. Similarly, if prefixBits is greater than the bit length of the address, it will be set to the bit length of the address.

Constructs a CIDR from the supplied IP address and prefix bit count. Note if prefixBits is less than 0, the built Cidr will have prefixBits set to 0. Similarly, if prefixBits is greater than the bit length of the address, it will be set to the bit length of the address.

def fromString(value: String): Option[Cidr[IpAddress]]

Constructs a CIDR from a string of the form ip/prefixBits.

Constructs a CIDR from a string of the form ip/prefixBits.

def fromString4(value: String): Option[Cidr[Ipv4Address]]

Constructs a CIDR from a string of the form ipv4/prefixBits.

Constructs a CIDR from a string of the form ipv4/prefixBits.

def fromString6(value: String): Option[Cidr[Ipv6Address]]

Constructs a CIDR from a string of the form ipv6/prefixBits.

Constructs a CIDR from a string of the form ipv6/prefixBits.

def unapply[A <: IpAddress](c: Cidr[A]): Option[(A, Int)]

Implicits

Implicits

implicit def order[A <: IpAddress]: Order[Cidr[A]]
implicit def ordering[A <: IpAddress]: Ordering[Cidr[A]]
implicit def show[A <: IpAddress]: Show[Cidr[A]]