2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.model.ietf.util;
10 final class MacUtil extends AbstractIetfYangUtil<MacClass, PhysClass, HexClass, QuadClass, UuidClass> {
12 super(MacClass.class, PhysClass.class, HexClass.class, QuadClass.class, UuidClass.class);
16 protected String getValue(final MacClass macAddress) {
17 return macAddress.getValue();
21 protected String getPhysValue(final PhysClass physAddress) {
22 return physAddress.getValue();
26 protected String getHexValue(final HexClass hexString) {
27 return hexString.getValue();
31 protected String getQuadValue(final QuadClass dottedQuad) {
32 return dottedQuad.getValue();