Java String Suffix suffixNotNullStringOrDefault(String str, String defaultStr, String suffix)

Here you can find the source of suffixNotNullStringOrDefault(String str, String defaultStr, String suffix)

Description

suffix Not Null String Or Default

License

Apache License

Declaration

public static String suffixNotNullStringOrDefault(String str,
        String defaultStr, String suffix) 

Method Source Code

//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;
    }
}

Related

  1. suffix(String[] columns, String suffix)
  2. suffixClassName(String tableName)
  3. suffixes(char[] x, int[] suff)
  4. suffixLabel(String label, String tagSuffix)
  5. suffixName(String name)
  6. suffixWith(String receiver, char suffix, boolean ignoreCase)