com.vladmihalcea.hibernate.util
Class StringUtils

java.lang.Object
  extended by com.vladmihalcea.hibernate.util.StringUtils

public class StringUtils
extends Object

StringUtils - String utilities holder.

Since:
2.5.1
Author:
Vlad Mihalcea

Field Summary
static String LINE_SEPARATOR
           
 
Method Summary
static boolean isBlank(String value)
          Check if the String value is null, empty or contains only whitespace characters.
static String join(CharSequence delimiter, CharSequence... elements)
          Join the provided elements separated by the delimiter.
static String toLowercase(String value)
          Transform string to lowercase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_SEPARATOR

public static final String LINE_SEPARATOR
Method Detail

join

public static String join(CharSequence delimiter,
                          CharSequence... elements)
Join the provided elements separated by the delimiter.

Parameters:
delimiter - delimiter
elements - elements to join
Returns:
the {link @String} result obtained from joining all elements

isBlank

public static boolean isBlank(String value)
Check if the String value is null, empty or contains only whitespace characters.

Parameters:
value - String value
Returns:
if the string is blank

toLowercase

public static String toLowercase(String value)
Transform string to lowercase.

Parameters:
value - String value
Returns:
String value in lowercase


Copyright © 2022. All rights reserved.