org.deken.game.utils
Class StringUtils

java.lang.Object
  extended by org.deken.game.utils.StringUtils

public class StringUtils
extends java.lang.Object

Title: StringUtils

Description:

Copyright: Copyright (c) Sep 21, 2014

Version:
1.0
Author:
Gary Deken

Constructor Summary
StringUtils()
           
 
Method Summary
static boolean isBlank(java.lang.CharSequence cs)
          Checks if a CharSequence is whitespaces, empty ("") or null
static boolean isEmpty(java.lang.CharSequence c)
          Checks if a CharSequence is empty ("") or null.
static boolean isNotBlank(java.lang.CharSequence cs)
          Checks if a CharSequence is not empty (""), not null and not whitespace only.
static boolean isNotEmpty(java.lang.CharSequence c)
          Checks if a CharSequence is not empty ("") and not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

isBlank

public static boolean isBlank(java.lang.CharSequence cs)
Checks if a CharSequence is whitespaces, empty ("") or null

Parameters:
cs -
Returns:

isEmpty

public static boolean isEmpty(java.lang.CharSequence c)
Checks if a CharSequence is empty ("") or null.

Parameters:
c -
Returns:

isNotBlank

public static boolean isNotBlank(java.lang.CharSequence cs)
Checks if a CharSequence is not empty (""), not null and not whitespace only.

Parameters:
cs -
Returns:

isNotEmpty

public static boolean isNotEmpty(java.lang.CharSequence c)
Checks if a CharSequence is not empty ("") and not null.

Parameters:
c -
Returns: