Class BinContent
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.api.util.BinContent
-
public abstract class BinContent extends Object
Conversion utilities.- Author:
- michal.polkorab
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
intToUnsignedLong(int value)
Converts an int to unsigned long.static int
longToSignedInt(long value)
Converts an unsigned long to int.
-
-
-
Method Detail
-
intToUnsignedLong
public static long intToUnsignedLong(int value)
Converts an int to unsigned long.- Parameters:
value
- input integer value (might be negative)- Returns:
- int part wrapped in long (always positive)
-
longToSignedInt
public static int longToSignedInt(long value)
Converts an unsigned long to int.- Parameters:
value
- input long value- Returns:
- long cut into int
-
-