Represents MAC address
isBroadcast ⇒ Boolean
-
TRUE
if is broadcats address isMulticast ⇒ Boolean
-
TRUE
if multicast address isValid ⇒ Boolean
-
TRUE
if is valid MAC address
equals(mac) ⇒ Boolean
-
Compates two MAC addresses
mac |
MAC address compate to |
TRUE
if MAC addresses are equals
toString(notation) ⇒ String
-
Returnas MAC address string representation
notation |
Constant |
Optional. Notation of MAC address, one of MAC address notation options. |
MAC address as a string
MacAddress(mac)
-
Creates new JSON object.
mac |
String |
Optional. String represenation of MAC address to parse to object |
MacAddress object
Constant | Description |
---|---|
MacAddressNotation::FLAT_STRING |
Without separator, e.g. |
MacAddressNotation::COLON_SEPARATED |
Separated by colon, e.g. |
MacAddressNotation::BYTEPAIR_COLON_SEPARATED |
Bytepairs separated by colon, e.g. |
MacAddressNotation::HYPHEN_SEPARATED |
Separated by hyphen, e.g. |
MacAddressNotation::DOT_SEPARATED |
Separated by dot, e.g. |
MacAddressNotation::BYTEPAIR_DOT_SEPARATED |
Bytepairs separated by dot, e.g. |
MacAddressNotation::DECIMAL_DOT_SEPARATED |
Decimal, separated by dot, e.g. |