public TokenParam(String theSystem, String theValue, boolean theText) { if (theText && isNotBlank(theSystem)) { throw new IllegalArgumentException("theSystem can not be non-blank if theText is true (:text searches do not include a system). In other words, set the first parameter to null for a text search"); } setSystem(theSystem); setValue(theValue); setText(theText); }
public TokenParam(String theSystem, String theValue, boolean theText) { if (theText && isNotBlank(theSystem)) { throw new IllegalArgumentException("theSystem can not be non-blank if theText is true (:text searches do not include a system). In other words, set the first parameter to null for a text search"); } setSystem(theSystem); setValue(theValue); setText(theText); }