public static Object quoteIfString ( Object obj ) { return obj instanceof String ? quote ( ( String ) obj ) : obj ; }
Turn the given Object into a String with single quotes if it is a String ; keeping the Object as - is else .