Class ObjectHelper

java.lang.Object
com.helger.base.lang.clazz.ObjectHelper

public final class ObjectHelper extends Object
Helper class providing the hex representation of an object's identity hash code address.
Author:
Philip Helger
  • Method Details

    • getObjectAddress

      @Nonempty public static @NonNull @Nonempty String getObjectAddress(@Nullable Object aObject)
      Get the hex representation of the passed object's address. Note that this method makes no differentiation between 32 and 64 bit architectures. The result is always a hexadecimal value preceded by "0x" and followed by exactly 8 characters.
      Parameters:
      aObject - The object who's address is to be retrieved. May be null.
      Returns:
      Depending on the current architecture. Always starting with "0x" and than containing the address.
      See Also: