com.ionos.network.commons.address.MACFormats Maven / Gradle / Ivy
package com.ionos.network.commons.address;
/**
* Formats a MAC address to text form in multiple notations.
* @see MAC
* @see AddressFormat
* @author Stephan Fuhrmann
* */
public final class MACFormats {
/**
* Returns a single byte hex representation of the MAC.
*
* Example: {@code 00:ac:ac:dd:00:12}.
* @see MACParsers#COLON_SEPARATED_HEX_FORMAT
*/
public static final AddressFormat COLON_SEPARATED_HEX_FORMAT =
new HexadecimalAddressFormat<>(':', 2);
/**
* Word hex representation of the MAC in CISCO style.
*
* Example:{@code 00ac.acdd.0012}.
*/
public static final AddressFormat CISCO_CUSTOM_FORMAT =
new HexadecimalAddressFormat<>('.', 4);
/**
* Private constructor. No instance allowed.
*/
private MACFormats() {
// no instance allowed
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy