Here you can find the source of isEmpty(final CharSequence cs)
public static boolean isEmpty(final CharSequence cs)
//package com.java2s; public class Main { public static boolean isEmpty(final CharSequence cs) { return cs == null || cs.length() == 0; }/*from w ww . j av a 2 s . co m*/ }