Class BinContent
java.lang.Object
org.opendaylight.openflowjava.protocol.api.util.BinContent
Conversion utilities.
- Author:
- michal.polkorab
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
intToUnsignedLong
(int value) Converts an int to unsigned long.static int
longToSignedInt
(long value) Converts an unsigned long to int.
-
Method Details
-
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
-