public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theFieldName; theFieldName = this.getFieldName(); strategy.appendField(locator, this, "fieldName", buffer, theFieldName, (this.fieldName!= null)); } { Integer theFragmentSize; theFragmentSize = this.getFragmentSize(); strategy.appendField(locator, this, "fragmentSize", buffer, theFragmentSize, (this.fragmentSize!= null)); } { List<String> theMatchedFields; theMatchedFields = (((this.matchedFields!= null)&&(!this.matchedFields.isEmpty()))?this.getMatchedFields():null); strategy.appendField(locator, this, "matchedFields", buffer, theMatchedFields, ((this.matchedFields!= null)&&(!this.matchedFields.isEmpty()))); } { Integer theNumOfFragments; theNumOfFragments = this.getNumOfFragments(); strategy.appendField(locator, this, "numOfFragments", buffer, theNumOfFragments, (this.numOfFragments!= null)); } return buffer; }
lhsMatchedFields = (((this.matchedFields!= null)&&(!this.matchedFields.isEmpty()))?this.getMatchedFields():null); List<String> rhsMatchedFields; rhsMatchedFields = (((that.matchedFields!= null)&&(!that.matchedFields.isEmpty()))?that.getMatchedFields():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "matchedFields", lhsMatchedFields), LocatorUtils.property(thatLocator, "matchedFields", rhsMatchedFields), lhsMatchedFields, rhsMatchedFields, ((this.matchedFields!= null)&&(!this.matchedFields.isEmpty())), ((that.matchedFields!= null)&&(!that.matchedFields.isEmpty())))) { return false;
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theFieldName; theFieldName = this.getFieldName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fieldName", theFieldName), currentHashCode, theFieldName, (this.fieldName!= null)); } { Integer theFragmentSize; theFragmentSize = this.getFragmentSize(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fragmentSize", theFragmentSize), currentHashCode, theFragmentSize, (this.fragmentSize!= null)); } { List<String> theMatchedFields; theMatchedFields = (((this.matchedFields!= null)&&(!this.matchedFields.isEmpty()))?this.getMatchedFields():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "matchedFields", theMatchedFields), currentHashCode, theMatchedFields, ((this.matchedFields!= null)&&(!this.matchedFields.isEmpty()))); } { Integer theNumOfFragments; theNumOfFragments = this.getNumOfFragments(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "numOfFragments", theNumOfFragments), currentHashCode, theNumOfFragments, (this.numOfFragments!= null)); } return currentHashCode; }
if (CollectionUtils.isNotEmpty(highlightFieldConfig.getMatchedFields())) highlightField.matchedFields(highlightFieldConfig.getMatchedFields().toArray(new String[0]));
if (CollectionUtils.isNotEmpty(highlightFieldConfig.getMatchedFields())) highlightField.matchedFields(highlightFieldConfig.getMatchedFields().toArray(new String[0]));
if (matchedFieldsShouldBeCopiedAndSet == Boolean.TRUE) { List<String> sourceMatchedFields; sourceMatchedFields = (((this.matchedFields!= null)&&(!this.matchedFields.isEmpty()))?this.getMatchedFields():null); @SuppressWarnings("unchecked") List<String> copyMatchedFields = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "matchedFields", sourceMatchedFields), sourceMatchedFields, ((this.matchedFields!= null)&&(!this.matchedFields.isEmpty())))); copy.matchedFields = null; if (copyMatchedFields!= null) { List<String> uniqueMatchedFieldsl = copy.getMatchedFields(); uniqueMatchedFieldsl.addAll(copyMatchedFields);