Package org.nameapi.client
Class RestStringUtil
- java.lang.Object
-
- org.nameapi.client.RestStringUtil
-
@Generated(value="class io.swagger.codegen.languages.JavaClientCodegen", date="2015-10-22T22:43:40.626Z") public class RestStringUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description RestStringUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsIgnoreCase(String[] array, String value)Check if the given array contains the given value (with case-insensitive comparison).static Stringjoin(String[] array, String separator)Join an array of strings with the given separator.static StringtoIndentedString(Object o)Convert the given object to string with each line indented by 4 spaces (except the first line).
-
-
-
Method Detail
-
containsIgnoreCase
public static boolean containsIgnoreCase(String[] array, String value)
Check if the given array contains the given value (with case-insensitive comparison).- Parameters:
array- The arrayvalue- The value to search- Returns:
- true if the array contains the value
-
join
public static String join(String[] array, String separator)
Join an array of strings with the given separator.Note: This might be replaced by utility method from commons-lang or guava someday if one of those libraries is added as dependency.
- Parameters:
array- The array of stringsseparator- The separator- Returns:
- the resulting string
-
-