@Test public void testIsEmptyList() { assertTrue( Utils.isEmpty( (List<String>) null ) ); assertTrue( Utils.isEmpty( new ArrayList<String>() ) ); assertFalse( Utils.isEmpty( Arrays.asList( "test", 1 ) ) ); }
public static boolean isEmpty( CharSequence val ) { return val == null || val.length() == 0; }
Utils { public static boolean isEmpty( CharSequence val ) { return val == null || val.length() == 0; } }
Utils { public static boolean isEmpty( CharSequence val ) { return val == null || val.length() == 0; }  }
Utils { public static boolean isEmpty( CharSequence val ) { return val == null || val.length() == 0; }  static int getDamerauLevenshteinDistance( String s, String t ); static boolean isEmpty( CharSequence val ); static boolean isEmpty( CharSequence[] strings ); static boolean isEmpty( Object[] array ); static boolean isEmpty( List<?> list ); static String resolvePassword( VariableSpace variables, String password ); static String[][] normalizeArrays( int normalizeToLength, String[]... arraysToNormalize ); static long[][] normalizeArrays( int normalizeToLength, long[]... arraysToNormalize ); static int[][] normalizeArrays( int normalizeToLength, int[]... arraysToNormalize ); static boolean[][] normalizeArrays( int normalizeToLength, boolean[]... arraysToNormalize ); static short[][] normalizeArrays( int normalizeToLength, short[]... arraysToNormalize ); }
Utils { public static boolean isEmpty( CharSequence val ) { return val == null || val.length() == 0; }  static int getDamerauLevenshteinDistance( String s, String t ); static boolean isEmpty( CharSequence val ); static boolean isEmpty( CharSequence[] strings ); static boolean isEmpty( Object[] array ); static boolean isEmpty( List<?> list ); static String resolvePassword( VariableSpace variables, String password ); static String[][] normalizeArrays( int normalizeToLength, String[]... arraysToNormalize ); static long[][] normalizeArrays( int normalizeToLength, long[]... arraysToNormalize ); static int[][] normalizeArrays( int normalizeToLength, int[]... arraysToNormalize ); static boolean[][] normalizeArrays( int normalizeToLength, boolean[]... arraysToNormalize ); static short[][] normalizeArrays( int normalizeToLength, short[]... arraysToNormalize );  }