Package overit.geocall.util
Class MacAddress
java.lang.Object
overit.geocall.util.MacAddress
The class implements the MAC Address (Media Access Control Address), that is the unique identifier assigned
to a network interface controller for communications at the data link layer of a network segment
-
Constructor Summary
ConstructorsConstructorDescriptionMacAddress(byte[] bb) Creates a new instance of MacAddress starting from the byte array passed as parameterMacAddress(String mac) Creates a new instance of MacAddress starting from the string passed as parameter -
Method Summary
-
Constructor Details
-
MacAddress
public MacAddress(byte[] bb) Creates a new instance of MacAddress starting from the byte array passed as parameter- Parameters:
bb- The byte array used to create the MacAddress
-
MacAddress
Creates a new instance of MacAddress starting from the string passed as parameter- Parameters:
mac- The string used to create the MacAddress
-
-
Method Details
-
toString
-
toCode
Returns a code string representation of the MacAddress without delimiters- Returns:
- A string representation of the MacAddress without delimiters
-
getBytes
public byte[] getBytes()Returns the byte array that defines the MacAddress- Returns:
- The byte array that defines the MacAddress
-
hashCode
public int hashCode() -
equals
-