MacAddress

com.comcast.ip4s.MacAddress
See theMacAddress companion class
object MacAddress

Attributes

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

Members list

Value members

Concrete methods

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

Constructs a MacAddress from a 6-element byte array.

Constructs a MacAddress from a 6-element byte array. Returns Some when array is exactly 6-bytes and None otherwise.

Attributes

Source
MacAddress.scala
def fromBytes(b0: Int, b1: Int, b2: Int, b3: Int, b4: Int, b5: Int): MacAddress

Constructs a MacAddress from the specified 6 bytes.

Constructs a MacAddress from the specified 6 bytes.

Each byte is represented as an Int to avoid having to manually call .toByte on each value -- the toByte call is done inside this function.

Attributes

Source
MacAddress.scala
def fromLong(value: Long): MacAddress

Constructs a MacAddress from a Long, using the lower 48-bits.

Constructs a MacAddress from a Long, using the lower 48-bits.

Attributes

Source
MacAddress.scala
def fromString(value: String): Option[MacAddress]

Parses a MacAddress from a string, returning None if the string is not a valid mac.

Parses a MacAddress from a string, returning None if the string is not a valid mac.

Attributes

Source
MacAddress.scala

Implicits

Implicits

implicit val order: Order[MacAddress]

Attributes

Source
MacAddress.scala
implicit val show: Show[MacAddress]

Attributes

Source
MacAddress.scala