2 * Copyright (c) 2013 Pantheon Technologies s.r.o. 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.openflowjava.protocol.api.util;
12 * @author michal.polkorab
15 public abstract class BinContent {
19 * @return int part wrapped in long
21 public static long intToUnsignedLong(int value) {
22 return value & 0x00000000ffffffffL;
27 * @return long cut into int
29 public static int longToSignedInt(long value) {