@Test public void equals() { assertThat(TextUtils.equals(null, null), is(false)); assertThat(TextUtils.equals(null, ""), is(false)); assertThat(TextUtils.equals("", null), is(false)); assertThat(TextUtils.equals("", ""), is(true)); assertThat(TextUtils.equals("qw", "qw"), is(true)); assertThat(TextUtils.equals("qw", "wq"), is(false)); }
public static boolean equals(@Nullable String a, @Nullable String b) { return a != null && a.equals(b); }
TextUtils { public static boolean equals(@Nullable String a, @Nullable String b) { return a != null && a.equals(b); } }
TextUtils { public static boolean equals(@Nullable String a, @Nullable String b) { return a != null && a.equals(b); } private  TextUtils(); }
TextUtils { public static boolean equals(@Nullable String a, @Nullable String b) { return a != null && a.equals(b); } 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 equals(@Nullable String a, @Nullable String b) { return a != null && a.equals(b); } 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);  }