2 * Copyright (c) 2013 Contextream, 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
9 package org.opendaylight.lispflowmapping.type;
11 public enum AddressFamilyNumberEnum {
15 DISTINGUISHED_NAME(17), //
21 private short ianaCode;
23 private AddressFamilyNumberEnum(int ianaCode) {
24 this.ianaCode = (short) ianaCode;
27 public short getIanaCode() {
31 public static AddressFamilyNumberEnum valueOf(short ianaCode) {
32 for (AddressFamilyNumberEnum val : values()) {
33 if (val.getIanaCode() == ianaCode) {