Here you can find the source of ObjectToString(Object x)
public final static String ObjectToString(Object x)
//package com.java2s; //License from project: Open Source License public class Main { public final static String ObjectToString(Object x) { return x.toString(); }/*from w w w. ja v a 2 s. c o m*/ public final static String ToString(Object x) { if (x == null) { return "null"; } return x.toString(); } public final static String ToString(boolean x) { return String.valueOf(x); } public final static String ToString(long x) { return String.valueOf(x); } public final static String ToString(double x) { return String.valueOf(x); } }