@Test public void handles_TRUE_APPEAL() { XSettings xsettings = new XSettings(); xsettings.setField(XField.CC_APPEAL); assertTrue(converter.handles(xsettings)); }
@Override public boolean handles(XSettings xsettings) { Preconditions.checkNotNull(xsettings); return xsettings.getField() == XField.CC_APPEAL || xsettings.getField() == XField.CC_REGION || xsettings.getField() == XField.CC_DISTRICT; }
FacetCcCourtAreaValueConverter implements FacetValueConverter { @Override public boolean handles(XSettings xsettings) { Preconditions.checkNotNull(xsettings); return xsettings.getField() == XField.CC_APPEAL || xsettings.getField() == XField.CC_REGION || xsettings.getField() == XField.CC_DISTRICT; } }
FacetCcCourtAreaValueConverter implements FacetValueConverter { @Override public boolean handles(XSettings xsettings) { Preconditions.checkNotNull(xsettings); return xsettings.getField() == XField.CC_APPEAL || xsettings.getField() == XField.CC_REGION || xsettings.getField() == XField.CC_DISTRICT; }  }
FacetCcCourtAreaValueConverter implements FacetValueConverter { @Override public boolean handles(XSettings xsettings) { Preconditions.checkNotNull(xsettings); return xsettings.getField() == XField.CC_APPEAL || xsettings.getField() == XField.CC_REGION || xsettings.getField() == XField.CC_DISTRICT; }  @Override Object convert(String value, XSettings xsettings); @Override boolean handles(XSettings xsettings); @Autowired void setCcCourtAreaFieldValueConverter(CcCourtAreaFieldValueConverter ccCourtAreaFieldValueConverter); }
FacetCcCourtAreaValueConverter implements FacetValueConverter { @Override public boolean handles(XSettings xsettings) { Preconditions.checkNotNull(xsettings); return xsettings.getField() == XField.CC_APPEAL || xsettings.getField() == XField.CC_REGION || xsettings.getField() == XField.CC_DISTRICT; }  @Override Object convert(String value, XSettings xsettings); @Override boolean handles(XSettings xsettings); @Autowired void setCcCourtAreaFieldValueConverter(CcCourtAreaFieldValueConverter ccCourtAreaFieldValueConverter);  }