Here you can find the source of suffixNotNullStringOrDefault(String str, String defaultStr, String suffix)
public static String suffixNotNullStringOrDefault(String str, String defaultStr, String suffix)
//package com.java2s; //License from project: Apache License public class Main { public static String suffixNotNullStringOrDefault(String str, String defaultStr, String suffix) { if (str == null) { return defaultStr; }/*from ww w . ja v a 2s . c om*/ return str + suffix; } }