private void addAdaptedListsToInputAdapter(InputAdapterDto input, List <String> listColors, List <String> listRemovedColors) { List <List <String> > listAdapter = new List <List <String> >(); listAdapter.Add(listColors); listAdapter.Add(listRemovedColors); input.setValue(listAdapter); }
public void execute(Input input) { String text = (String)input.getValue(); Input inputAdapter = new InputAdapterDto(); List <String> listWords = convertTextToList(text); List <String> listWithoutEmpty = getListWithoutEmpty(listWords); inputAdapter.setValue(listWithoutEmpty); performResponse(inputAdapter); }