Class Addresses

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
     
  • Method Summary

    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.

    Methods declared in class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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