Cidr

com.comcast.ip4s.Cidr$
See theCidr companion class
object Cidr

Attributes

Companion:
class
Source:
Cidr.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Cidr.type

Members list

Concise view

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.

Attributes

Source:
Cidr.scala
def fromIpAndMask[A <: IpAddress](address: A, mask: A): Cidr[A]

Constructs a CIDR from the supplied IP address and netmask. The number of leading 1 bits in the netmask are used as the prefix bits for the CIDR.

Constructs a CIDR from the supplied IP address and netmask. The number of leading 1 bits in the netmask are used as the prefix bits for the CIDR.

Attributes

Source:
Cidr.scala

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

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

Attributes

Source:
Cidr.scala

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

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

Attributes

Source:
Cidr.scala

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

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

Attributes

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

Attributes

Source:
Cidr.scala

Implicits

Implicits

implicit def order[A <: IpAddress]: Order[Cidr[A]]

Attributes

Source:
Cidr.scala
implicit def ordering[A <: IpAddress]: Ordering[Cidr[A]]

Attributes

Source:
Cidr.scala
implicit def show[A <: IpAddress]: Show[Cidr[A]]

Attributes

Source:
Cidr.scala