@Test public void testCreateMapForSimpleDataTypes() { Map<String, String> tested = createMapForSimpleDataTypes(); assertEquals(simpleDataTypes.size(), tested.size()); for (String type : simpleDataTypes) { assertEquals(type, tested.get(type)); } }
static Map<String, String> createMapForSimpleDataTypes() { if (simpleDataTypes == null) { return new HashMap<>(); } return simpleDataTypes.stream().collect(toMap(x -> x, x -> x)); }
MultipleInstanceVariableEditorPresenter extends FieldEditorPresenter<String> { static Map<String, String> createMapForSimpleDataTypes() { if (simpleDataTypes == null) { return new HashMap<>(); } return simpleDataTypes.stream().collect(toMap(x -> x, x -> x)); } }
MultipleInstanceVariableEditorPresenter extends FieldEditorPresenter<String> { static Map<String, String> createMapForSimpleDataTypes() { if (simpleDataTypes == null) { return new HashMap<>(); } return simpleDataTypes.stream().collect(toMap(x -> x, x -> x)); } @Inject  MultipleInstanceVariableEditorPresenter(final View view,
                                                   final SessionManager sessionManager); }
MultipleInstanceVariableEditorPresenter extends FieldEditorPresenter<String> { static Map<String, String> createMapForSimpleDataTypes() { if (simpleDataTypes == null) { return new HashMap<>(); } return simpleDataTypes.stream().collect(toMap(x -> x, x -> x)); } @Inject  MultipleInstanceVariableEditorPresenter(final View view,
                                                   final SessionManager sessionManager); @PostConstruct void init(); @Override void setValue(String value); List<String> getSimpleDataTypes(); @Override void setReadOnly(boolean readOnly); void onVariableChange(); Path getDiagramPath(); static Map<String, String> getMapDataTypeNamesToDisplayNames(); }
MultipleInstanceVariableEditorPresenter extends FieldEditorPresenter<String> { static Map<String, String> createMapForSimpleDataTypes() { if (simpleDataTypes == null) { return new HashMap<>(); } return simpleDataTypes.stream().collect(toMap(x -> x, x -> x)); } @Inject  MultipleInstanceVariableEditorPresenter(final View view,
                                                   final SessionManager sessionManager); @PostConstruct void init(); @Override void setValue(String value); List<String> getSimpleDataTypes(); @Override void setReadOnly(boolean readOnly); void onVariableChange(); Path getDiagramPath(); static Map<String, String> getMapDataTypeNamesToDisplayNames();  }