public static < T extends CharSequence > T checkNotEmpty ( final T reference ) { if ( TextUtils . isEmpty ( reference ) ) { throw new IllegalArgumentException ( ) ; } return reference ; }
Ensures that a CharSequence passed as a parameter to the calling method is not null and not empty .