src/main/java/de/jformchecker/StringUtils.java
public static String alternative(final String original, final String alternative) {
    return isEmpty(original) ? alternative : original;
  }
public static String alternative(final String original, final String alternative) {
    return isEmpty(original) ? alternative : original;
  }
public static String alternative ( final String original , final String alternative ) { return isEmpty ( original ) ? alternative : original ; }
checks if the original string is empty. if empty/null return the alternative, otherwise the
original

@param original
@param alternative
@return
checks if the original string is empty . if empty / null return the alternative otherwise the original