This commit is contained in:
hyb1996
2017-09-24 22:26:01 +08:00
parent 601019cab2
commit 8c9777c138
3 changed files with 21 additions and 5 deletions

View File

@@ -1,12 +1,22 @@
package com.stardust.util;
import android.support.annotation.NonNull;
/**
* Created by Stardust on 2017/5/3.
*/
public class TextUtils {
public static String join(CharSequence delimiter, Object... tokens){
public static String join(CharSequence delimiter, Object... tokens) {
return android.text.TextUtils.join(delimiter, tokens);
}
@NonNull
public static String toEmptyIfNull(String message) {
if (message == null)
return "";
return message;
}
}