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