Package com.helger.base.lang.clazz
Class ObjectHelper
java.lang.Object
com.helger.base.lang.clazz.ObjectHelper
Helper class providing the hex representation of an object's identity hash
code address.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull @Nonempty StringgetObjectAddress(@Nullable Object aObject) Get the hex representation of the passed object's address.
-
Method Details
-
getObjectAddress
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 benull.- Returns:
- Depending on the current architecture. Always starting with "0x" and than containing the address.
- See Also:
-