jenkins.plugins.shiningpanda.utils
Class StringUtil

java.lang.Object
  extended by jenkins.plugins.shiningpanda.utils.StringUtil

public class StringUtil
extends Object


Constructor Summary
StringUtil()
           
 
Method Summary
static String fixCrLf(String s)
          Fix CR/LF and always make it Unix style
static String[] fixNull(String[] values)
          Check that the provided array is not null.
static boolean hasWhitespace(String value)
          Check that the provided value has no whitespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

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.