@Beta public abstract class AbstractIetfYangUtil<T> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIetfYangUtil(Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
bytesFor(T macAddress) |
T |
canonizeMacAddress(T macAddress)
Convert the value of a MacAddress into the canonical representation.
|
protected abstract String |
getValue(T macAddress) |
T |
macAddressFor(byte[] bytes)
Create a MacAddress object holding the canonical representation of the 6 bytes
passed in as argument.
|
@Nonnull public final T canonizeMacAddress(@Nonnull T macAddress)
macAddress - Input MAC addressNullPointerException - if macAddress is null@Nonnull public final T macAddressFor(@Nonnull byte[] bytes)
bytes - 6-byte input arrayNullPointerException - if bytes is nullIllegalArgumentException - if length of input is not 6 bytesCopyright © 2019 OpenDaylight. All rights reserved.