public class

Strings

extends Object
java.lang.Object
   ↳ com.davidluoye.support.box.Strings

Summary

Public Constructors
Strings()
Public Methods
static boolean contains(CharSequence raw, CharSequence... items)
static boolean containsIgnoreCase(CharSequence raw, CharSequence... items)
static boolean equals(CharSequence pre, CharSequence next)
static boolean equalsIgnoreCase(CharSequence pre, CharSequence next)
static boolean isBlank(String value)

Checks if a String is whitespace, empty ("") or null.

static boolean isEmpty(String value)

Checks if a String is empty ("") or null.

static <T> boolean isEmpty(T[] values)
static boolean isNotBlank(String value)

Checks if a String is not empty (""), not null and not whitespace only.

static boolean isNotEmpty(String value)

Checks if a String is not empty ("") and not null.

static char toLowerCase(char a)
static char toUpperCase(char a)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Strings ()

Public Methods

public static boolean contains (CharSequence raw, CharSequence... items)

public static boolean containsIgnoreCase (CharSequence raw, CharSequence... items)

public static boolean equals (CharSequence pre, CharSequence next)

public static boolean equalsIgnoreCase (CharSequence pre, CharSequence next)

public static boolean isBlank (String value)

Checks if a String is whitespace, empty ("") or null.

Parameters
value the String to check, may be null
Returns
  • true if the String is null, empty or whitespace

public static boolean isEmpty (String value)

Checks if a String is empty ("") or null.

Parameters
value the String to check, may be null
Returns
  • true if the String is empty or null

public static boolean isEmpty (T[] values)

public static boolean isNotBlank (String value)

Checks if a String is not empty (""), not null and not whitespace only.

Parameters
value the String to check, may be null
Returns
  • true if the String is not empty and not null and not whitespace

public static boolean isNotEmpty (String value)

Checks if a String is not empty ("") and not null.

Parameters
value the String to check, may be null
Returns
  • true if the String is not empty and not null

public static char toLowerCase (char a)

public static char toUpperCase (char a)