@Test public void stripHandle() throws Exception { assertThat(AutoCompleteUtils.stripPrefixHandle('@', ""), is("")); assertThat(AutoCompleteUtils.stripPrefixHandle('@', "no_handle"), is("no_handle")); assertThat(AutoCompleteUtils.stripPrefixHandle('@', "no_handle@"), is("no_handle@")); assertThat(AutoCompleteUtils.stripPrefixHandle('@', "@handle"), is("handle")); }
public static String stripPrefixHandle(char handle, @Nullable CharSequence text) { if (TextUtils.isEmpty(text)) { return ""; } return text.charAt(0) == handle ? text.toString().substring(1) : text.toString(); }
AutoCompleteUtils { public static String stripPrefixHandle(char handle, @Nullable CharSequence text) { if (TextUtils.isEmpty(text)) { return ""; } return text.charAt(0) == handle ? text.toString().substring(1) : text.toString(); } }
AutoCompleteUtils { public static String stripPrefixHandle(char handle, @Nullable CharSequence text) { if (TextUtils.isEmpty(text)) { return ""; } return text.charAt(0) == handle ? text.toString().substring(1) : text.toString(); } private  AutoCompleteUtils(); }
AutoCompleteUtils { public static String stripPrefixHandle(char handle, @Nullable CharSequence text) { if (TextUtils.isEmpty(text)) { return ""; } return text.charAt(0) == handle ? text.toString().substring(1) : text.toString(); } 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 String stripPrefixHandle(char handle, @Nullable CharSequence text) { if (TextUtils.isEmpty(text)) { return ""; } return text.charAt(0) == handle ? text.toString().substring(1) : text.toString(); } 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);  }