View Javadoc

1   /**
2    * 
3    */
4   package net.sf.statcvs.util;
5   
6   /**
7    * @author xhensevalb
8    *
9    */
10  public final class StringUtils {
11      private StringUtils() {
12      }
13  
14      /**
15       * @return true if txt !=null and not empty.
16       */
17      public static boolean isNotEmpty(final String txt) {
18          return txt != null && txt.trim().length() > 0;
19      }
20  }