@Test public void convertFromValidString() throws Exception { Assert.assertEquals(DatadogTransport.UDP, new DatadogTransportConverter().convertFrom("UDP")); }
@Override public DatadogTransport convertFrom(String value) { try { return DatadogTransport.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to Datadog transport.", e); } }
DatadogTransportConverter implements Converter<DatadogTransport> { @Override public DatadogTransport convertFrom(String value) { try { return DatadogTransport.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to Datadog transport.", e); } } }
DatadogTransportConverter implements Converter<DatadogTransport> { @Override public DatadogTransport convertFrom(String value) { try { return DatadogTransport.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to Datadog transport.", e); } }  }
DatadogTransportConverter implements Converter<DatadogTransport> { @Override public DatadogTransport convertFrom(String value) { try { return DatadogTransport.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to Datadog transport.", e); } }  @Override DatadogTransport convertFrom(String value); @Override String convertTo(DatadogTransport value); }
DatadogTransportConverter implements Converter<DatadogTransport> { @Override public DatadogTransport convertFrom(String value) { try { return DatadogTransport.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to Datadog transport.", e); } }  @Override DatadogTransport convertFrom(String value); @Override String convertTo(DatadogTransport value);  }