- java.lang.Object
-
- com.ibm.j9ddr.corereaders.memory.Addresses
-
public class Addresses extends Object
Contains static helpers for working with addresses as long. Encapsulates 64-bit unsigned comparisons using 64-bit signed longs.
-
-
Constructor Summary
Constructors Constructor Description Addresses()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
greaterThan(long a, long b)
Compare two addresses, returning true if the first is greater than the second.static boolean
greaterThanOrEqual(long a, long b)
Compare two addresses, returning true if the first is greater than or equal to the second.static boolean
lessThan(long a, long b)
Compare two addresses, returning true if the first is less than the second.static boolean
lessThanOrEqual(long a, long b)
Compare two addresses, returning true if the first is less than or equal to the second.
-
-
-
Method Detail
-
greaterThan
public static boolean greaterThan(long a, long b)
Compare two addresses, returning true if the first is greater than the second.- Parameters:
a
-b
-- Returns:
- true if a > b
-
greaterThanOrEqual
public static boolean greaterThanOrEqual(long a, long b)
Compare two addresses, returning true if the first is greater than or equal to the second.- Parameters:
a
-b
-- Returns:
- true if a >= b
-
lessThan
public static boolean lessThan(long a, long b)
Compare two addresses, returning true if the first is less than the second.- Parameters:
a
-b
-- Returns:
- True if a is < b
-
lessThanOrEqual
public static boolean lessThanOrEqual(long a, long b)
Compare two addresses, returning true if the first is less than or equal to the second.- Parameters:
a
-b
-- Returns:
- true if a is <= b
-
-