
com.cantaa.util.StringUtil Maven / Gradle / Ivy
package com.cantaa.util;
import java.io.File;
import java.util.Arrays;
import java.util.List;
/**
* All kind of String-Utility Methods
*
* @author Hans Lesmeister
*/
public class StringUtil {
/**
* Trim with respect of Nullpointer
*
* @param value The value to be trimmed
* @return Trimmed String or null if the passed String was null
*/
public static String trim(String value) {
return (value == null) ? null : value.trim();
}
public static CharSequence join(String separator, Object... values) {
if (values == null) {
return null;
}
return join(separator, Arrays.asList(values));
}
public static CharSequence join(String separator, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy