IpAddress

object IpAddress extends IpAddressCompanionPlatform
Companion
class
trait IpAddressCompanionPlatform
class Object
trait Matchable
class Any

Value members

Concrete methods

def fromBytes(bytes: Array[Byte]): Option[IpAddress]

Constructs an IP address from either a 4-element byte array or a 16-element byte array. Any other size array results in a None.

Constructs an IP address from either a 4-element byte array or a 16-element byte array. Any other size array results in a None.

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

Parses an IP address from a string, either in dotted decimal notation or in RFC4291 notation.

Parses an IP address from a string, either in dotted decimal notation or in RFC4291 notation.

Implicits

Implicits

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