Class Addresses
java.lang.Object
com.ibm.j9ddr.corereaders.memory.Addresses
Contains static helpers for working with addresses as long.
Encapsulates 64-bit unsigned comparisons using 64-bit signed longs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
Addresses
public Addresses()
-
-
Method Details
-
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 invalid input: '<' 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 invalid input: '<'= b
-