jenkins.plugins.shiningpanda.utils
Class StringUtil
java.lang.Object
jenkins.plugins.shiningpanda.utils.StringUtil
public class StringUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtil
public StringUtil()
fixCrLf
public static String fixCrLf(String s)
- Fix CR/LF and always make it Unix style
- Parameters:
s
- The string to fix
- Returns:
- The fixed string
hasWhitespace
public static boolean hasWhitespace(String value)
- Check that the provided value has no whitespace.
- Parameters:
value
- The value to check.
- Returns:
- True if has whitespace, else false
fixNull
public static String[] fixNull(String[] values)
- Check that the provided array is not null. If null fix it by returning an
empty array.
- Parameters:
values
- The array to fix
- Returns:
- A fixed array
Copyright © 2004-2012. All Rights Reserved.