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
8 package org.opendaylight.lispflowmapping.lisp.util;
10 import org.opendaylight.yangtools.yang.common.Uint8;
12 public final class NumberUtil {
13 // Utility class, should not be instantiated
14 private NumberUtil() {
17 public static int asInt(Integer number) {
24 public static byte asByte(Byte number) {
31 public static short asShort(Short number) {
38 public static short asShort(Uint8 number) {
40 return number.toJava();
45 public static long asLong(Long number) {