Here you can find the source of simpleClassNameAndHashCodeString(Object object)
public static String simpleClassNameAndHashCodeString(Object object)
//package com.java2s; //License from project: Apache License public class Main { public static String simpleClassNameAndHashCodeString(Object object) { String simpleClassName = simpleClassName(object); if (object == null) { return simpleClassName; } else {/*from w w w .jav a2 s .co m*/ return simpleClassName + "@" + Integer.toHexString(object.hashCode()); } } public static String simpleClassName(Object object) { if (object == null) { return "null_object"; } Class clazz = object.getClass(); Package pkg = clazz.getPackage(); if (pkg != null) { return clazz.getName().substring(pkg.getName().length() + 1); } else { return clazz.getName(); } } }