Here you can find the source of identityToString(Object pObject)
Parameter | Description |
---|---|
pObject | the object |
public static String identityToString(Object pObject)
//package com.java2s; public class Main { /**// w w w . jav a2 s . c o m * Returns a string on the same format as {@code Object.toString()}. * * @param pObject the object * @return the object as a {@code String} on the format of * {@code Object.toString()} */ public static String identityToString(Object pObject) { if (pObject == null) { return null; } else { return pObject.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(pObject)); } } }