@Test public void shouldCheckAStringForBlank() { assertThat(StringUtil.isBlank(""), is(true)); assertThat(StringUtil.isBlank(" "), is(true)); assertThat(StringUtil.isBlank(null), is(true)); assertThat(StringUtil.isBlank(" a "), is(false)); }
public static boolean isBlank(String string) { return string == null || string.trim().isEmpty(); }
StringUtil { public static boolean isBlank(String string) { return string == null || string.trim().isEmpty(); } }
StringUtil { public static boolean isBlank(String string) { return string == null || string.trim().isEmpty(); }  }
StringUtil { public static boolean isBlank(String string) { return string == null || string.trim().isEmpty(); }  static boolean isBlank(String string); static Boolean isNotBlank(String string); }
StringUtil { public static boolean isBlank(String string) { return string == null || string.trim().isEmpty(); }  static boolean isBlank(String string); static Boolean isNotBlank(String string);  }