Here you can find the source of identityToString(Object obj)
public static String identityToString(Object obj)
//package com.java2s; //License from project: Apache License public class Main { public static String identityToString(Object obj) { return obj == null ? "" : obj.getClass().getName() + "@" + getIdentityHexString(obj); }/*from ww w. ja v a 2 s . co m*/ public static String getIdentityHexString(Object obj) { return Integer.toHexString(System.identityHashCode(obj)); } }