@Test public void convertTest() { TestEvent event = eventConverter.convert("TestEvent"); Assert.assertEquals(TestEvent.TEST_EVENT, event); }
@Override public E convert(String key) { for (E event : type.getEnumConstants()) { if (key.equalsIgnoreCase(event.event())) { return event; } } return null; }
EventConverterAdapter implements EventConverter<E> { @Override public E convert(String key) { for (E event : type.getEnumConstants()) { if (key.equalsIgnoreCase(event.event())) { return event; } } return null; } }
EventConverterAdapter implements EventConverter<E> { @Override public E convert(String key) { for (E event : type.getEnumConstants()) { if (key.equalsIgnoreCase(event.event())) { return event; } } return null; } EventConverterAdapter(Class<E> clazz); }
EventConverterAdapter implements EventConverter<E> { @Override public E convert(String key) { for (E event : type.getEnumConstants()) { if (key.equalsIgnoreCase(event.event())) { return event; } } return null; } EventConverterAdapter(Class<E> clazz); @Override E convert(String key); }
EventConverterAdapter implements EventConverter<E> { @Override public E convert(String key) { for (E event : type.getEnumConstants()) { if (key.equalsIgnoreCase(event.event())) { return event; } } return null; } EventConverterAdapter(Class<E> clazz); @Override E convert(String key);  }