@Test public void testWithRandomString() throws Exception { assertThat(converter.fromString("aaaa")).isFalse(); assertThat(converter.fromString("welcome true")).isFalse(); assertThat(converter.fromString("true welcome")).isFalse(); }
@Override public Boolean fromString(String value) { return value != null && TRUE.contains(value.toLowerCase()); }
BooleanConverter implements ParameterConverter<Boolean> { @Override public Boolean fromString(String value) { return value != null && TRUE.contains(value.toLowerCase()); } }
BooleanConverter implements ParameterConverter<Boolean> { @Override public Boolean fromString(String value) { return value != null && TRUE.contains(value.toLowerCase()); } private  BooleanConverter(); }
BooleanConverter implements ParameterConverter<Boolean> { @Override public Boolean fromString(String value) { return value != null && TRUE.contains(value.toLowerCase()); } private  BooleanConverter(); @Override Boolean fromString(String value); @Override Class<Boolean> getType(); }
BooleanConverter implements ParameterConverter<Boolean> { @Override public Boolean fromString(String value) { return value != null && TRUE.contains(value.toLowerCase()); } private  BooleanConverter(); @Override Boolean fromString(String value); @Override Class<Boolean> getType(); static final BooleanConverter INSTANCE; }