Module openj9.dtfj

Class 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 Detail

      • Addresses

        public Addresses()
    • 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