public class Conversion
extends java.lang.Object
This Class is used to provide different type conversions which are not available in Java 1.3 by default.
Modifier and Type | Method and Description |
---|---|
static int |
highIntFromLong(long theLong)
Extracts the "high" portion int value of the given long value
|
static long |
longFromTwoInts(int highInt,
int lowInt)
Generates a long value from two given int values.
|
static int |
lowIntFromLong(long theLong)
Extracts the "low" portion int value of the given long value
|
public static final long longFromTwoInts(int highInt, int lowInt)
highInt
- the "high" portion of the generated long valuelowInt
- the "low" portion of the generated long valuepublic static final int highIntFromLong(long theLong)
theLong
- the long value whichs "high" portion int value shall be extractedpublic static final int lowIntFromLong(long theLong)
theLong
- the long value whichs "low" portion int value shall be extracted