@Test public void afterTextChanged() throws Exception { CharSequence text = "text"; autoComplete.afterTextChanged(new SpannableStringBuilder(text)); verify(typeAdapter1).onTextChanged(eq(text)); verify(typeAdapter2).onTextChanged(eq(text)); }
@Override @CallSuper public void afterTextChanged(Editable s) { for (TypeAdapterDelegate typeAdapter : typeAdapters) { typeAdapter.onTextChanged(s.toString()); } }
MultiAutoCompleteImpl implements MultiAutoComplete, TextWatcher, MultiAutoCompleteEditText.OnSelectionChangedListener { @Override @CallSuper public void afterTextChanged(Editable s) { for (TypeAdapterDelegate typeAdapter : typeAdapters) { typeAdapter.onTextChanged(s.toString()); } } }
MultiAutoCompleteImpl implements MultiAutoComplete, TextWatcher, MultiAutoCompleteEditText.OnSelectionChangedListener { @Override @CallSuper public void afterTextChanged(Editable s) { for (TypeAdapterDelegate typeAdapter : typeAdapters) { typeAdapter.onTextChanged(s.toString()); } } MultiAutoCompleteImpl(@NonNull Tokenizer tokenizer,
                          @NonNull List<TypeAdapterDelegate> typeAdapters,
                          @Nullable Delayer delayer); }
MultiAutoCompleteImpl implements MultiAutoComplete, TextWatcher, MultiAutoCompleteEditText.OnSelectionChangedListener { @Override @CallSuper public void afterTextChanged(Editable s) { for (TypeAdapterDelegate typeAdapter : typeAdapters) { typeAdapter.onTextChanged(s.toString()); } } MultiAutoCompleteImpl(@NonNull Tokenizer tokenizer,
                          @NonNull List<TypeAdapterDelegate> typeAdapters,
                          @Nullable Delayer delayer); @Override void onViewAttached(@NonNull MultiAutoCompleteEditText view); @Override void onViewDetached(); @Override void beforeTextChanged(CharSequence s, int start, int count, int after); @Override void onTextChanged(CharSequence s, int start, int before, int count); @Override @CallSuper void afterTextChanged(Editable s); @Override boolean onSelectionChanged(int selStart, int selEnd); }
MultiAutoCompleteImpl implements MultiAutoComplete, TextWatcher, MultiAutoCompleteEditText.OnSelectionChangedListener { @Override @CallSuper public void afterTextChanged(Editable s) { for (TypeAdapterDelegate typeAdapter : typeAdapters) { typeAdapter.onTextChanged(s.toString()); } } MultiAutoCompleteImpl(@NonNull Tokenizer tokenizer,
                          @NonNull List<TypeAdapterDelegate> typeAdapters,
                          @Nullable Delayer delayer); @Override void onViewAttached(@NonNull MultiAutoCompleteEditText view); @Override void onViewDetached(); @Override void beforeTextChanged(CharSequence s, int start, int count, int after); @Override void onTextChanged(CharSequence s, int start, int before, int count); @Override @CallSuper void afterTextChanged(Editable s); @Override boolean onSelectionChanged(int selStart, int selEnd);  }