net.sf.flatpack.util
Class FPStringUtils

java.lang.Object
  extended by net.sf.flatpack.util.FPStringUtils

public final class FPStringUtils
extends java.lang.Object

Thanks to the Apache Commons Contributors.

Author:
Jakarta Commons

Method Summary
static boolean isBlank(java.lang.String str)
          Checks if a String is whitespace, empty ("") or null.
static boolean isNotBlank(java.lang.String str)
          Checks if a String is not empty (""), not null and not whitespace only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isBlank

public static boolean isBlank(java.lang.String str)

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

 PZStringUtils.isBlank(null)      = true
 PZStringUtils.isBlank("")        = true
 PZStringUtils.isBlank(" ")       = true
 PZStringUtils.isBlank("bob")     = false
 PZStringUtils.isBlank("  bob  ") = false
 

Parameters:
str - the String to check, may be null
Returns:
true if the String is null, empty or whitespace
Since:
2.0

isNotBlank

public static boolean isNotBlank(java.lang.String str)

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

 PZStringUtils.isNotBlank(null)      = false
 PZStringUtils.isNotBlank("")        = false
 PZStringUtils.isNotBlank(" ")       = false
 PZStringUtils.isNotBlank("bob")     = true
 PZStringUtils.isNotBlank("  bob  ") = true
 

Parameters:
str - the String to check, may be null
Returns:
true if the String is not empty and not null and not whitespace
Since:
2.0


Copyright © 2006-2011 Appendium - Portfolio Financing Platform. All Rights Reserved.