All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ocpsoft.pretty.faces.util.StringUtils Maven / Gradle / Ivy

There is a newer version: 3.3.3
Show newest version
package com.ocpsoft.pretty.faces.util;

/**
 * 
 * Helper class providing similar functions like the
 * StringUtils class of Apache Commons.
 * 
 * @author Christian Kaltepoth
 *
 */
public class StringUtils
{
   
   public static boolean isBlank(String s) {
      return s == null || s.trim().length() == 0;
   }
   
   public static boolean isNotBlank(String s) {
      return s != null && s.trim().length() > 0;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy