Here you can find the source of quoteIfString(Object obj)
public static Object quoteIfString(Object obj)
//package com.java2s; //License from project: Apache License public class Main { public static Object quoteIfString(Object obj) { return (obj instanceof String) ? quote((String) obj) : obj; }// w w w .j a v a 2 s .co m public static String quote(String str) { return str != null ? "'" + str + "'" : null; } }