@Test public void hasText() { assertThat(TextUtils.hasText(null), is(false)); assertThat(TextUtils.hasText(""), is(false)); assertThat(TextUtils.hasText(" "), is(false)); assertThat(TextUtils.hasText(" s "), is(true)); }
public static boolean hasText(@Nullable String string) { return !isEmpty(string) && !string.trim().isEmpty(); }
TextUtils { public static boolean hasText(@Nullable String string) { return !isEmpty(string) && !string.trim().isEmpty(); } }
TextUtils { public static boolean hasText(@Nullable String string) { return !isEmpty(string) && !string.trim().isEmpty(); } private  TextUtils(); }
TextUtils { public static boolean hasText(@Nullable String string) { return !isEmpty(string) && !string.trim().isEmpty(); } private  TextUtils(); static boolean isEmpty(@Nullable String str); static boolean notEquals(@Nullable String a, @Nullable String b); static boolean hasText(@Nullable String string); static boolean equals(@Nullable String a, @Nullable String b); }
TextUtils { public static boolean hasText(@Nullable String string) { return !isEmpty(string) && !string.trim().isEmpty(); } private  TextUtils(); static boolean isEmpty(@Nullable String str); static boolean notEquals(@Nullable String a, @Nullable String b); static boolean hasText(@Nullable String string); static boolean equals(@Nullable String a, @Nullable String b);  }