2 * Copyright (c) 2014 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.lisp.type;
13 * http://www.iana.org/assignments/address-family-numbers/address-family
16 public enum AddressFamilyNumberEnum {
20 DISTINGUISHED_NAME(17), //
26 private short ianaCode;
28 private AddressFamilyNumberEnum(int ianaCode) {
29 this.ianaCode = (short) ianaCode;
32 public short getIanaCode() {
36 public static AddressFamilyNumberEnum valueOf(short ianaCode) {
37 for (AddressFamilyNumberEnum val : values()) {
38 if (val.getIanaCode() == ianaCode) {