/** * Adds the given items to the value of "matchedFields" * * @param matchedFields * Items to add to the value of the "matchedFields" property */ public IndexSearchHighlightField.Builder<_B> addMatchedFields(String... matchedFields) { addMatchedFields(Arrays.asList(matchedFields)); return this; }
/** * Sets the new value of "matchedFields" (any previous value will be replaced) * * @param matchedFields * New value of the "matchedFields" property. */ public IndexSearchHighlightField.Builder<_B> withMatchedFields(final Iterable<? extends String> matchedFields) { if (this.matchedFields!= null) { this.matchedFields.clear(); } return addMatchedFields(matchedFields); }