@Test public void hasHandle() throws Exception { assertThat(AutoCompleteUtils.hasPrefixHandle('@', ""), is(false)); assertThat(AutoCompleteUtils.hasPrefixHandle('@', "no_handle"), is(false)); assertThat(AutoCompleteUtils.hasPrefixHandle('@', "no_handle@"), is(false)); assertThat(AutoCompleteUtils.hasPrefixHandle('@', "@handle"), is(true)); }
public static boolean hasPrefixHandle(char handle, @Nullable CharSequence token) { return !TextUtils.isEmpty(token) && token.charAt(0) == handle; }
AutoCompleteUtils { public static boolean hasPrefixHandle(char handle, @Nullable CharSequence token) { return !TextUtils.isEmpty(token) && token.charAt(0) == handle; } }
AutoCompleteUtils { public static boolean hasPrefixHandle(char handle, @Nullable CharSequence token) { return !TextUtils.isEmpty(token) && token.charAt(0) == handle; } private  AutoCompleteUtils(); }
AutoCompleteUtils { public static boolean hasPrefixHandle(char handle, @Nullable CharSequence token) { return !TextUtils.isEmpty(token) && token.charAt(0) == handle; } private  AutoCompleteUtils(); static boolean hasPrefixHandle(char handle, @Nullable CharSequence token); static String stripPrefixHandle(char handle, @Nullable CharSequence text); @SuppressWarnings("unused") static void selectAllText(EditText editText); }
AutoCompleteUtils { public static boolean hasPrefixHandle(char handle, @Nullable CharSequence token) { return !TextUtils.isEmpty(token) && token.charAt(0) == handle; } private  AutoCompleteUtils(); static boolean hasPrefixHandle(char handle, @Nullable CharSequence token); static String stripPrefixHandle(char handle, @Nullable CharSequence text); @SuppressWarnings("unused") static void selectAllText(EditText editText);  }