package cn.org.bjca.trust.push.common

object CommonHelper {
    @JvmStatic
    fun anyToString(value: Any?): String {
        return if (value == null) ""
        else {
            when (value) {
                is Array<*> -> {
                    value.joinToString()
                }
                else -> {
                    value.toString()
                }
            }
        }
    }
}