public IndexSearchHighlightField.Builder<Void> newCopyBuilder() { return newCopyBuilder(null); }
public IndexSearchHighlightField.Builder<Void> newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); }
/** * Copies all state of this object to a builder. This method is used by the {@link #copyOf} method and should not be called directly by client code. * * @param _other * A builder instance to which the state of this object will be copied. */ public<_B >void copyTo(final IndexSearchHighlightFields.Builder<_B> _other) { if (this.highlightFields == null) { _other.highlightFields = null; } else { _other.highlightFields = new ArrayList<IndexSearchHighlightField.Builder<IndexSearchHighlightFields.Builder<_B>>>(); for (IndexSearchHighlightField _item: this.highlightFields) { _other.highlightFields.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } }
public Builder(final _B _parentBuilder, final IndexSearchHighlightFields _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; if (_other.highlightFields == null) { this.highlightFields = null; } else { this.highlightFields = new ArrayList<IndexSearchHighlightField.Builder<IndexSearchHighlightFields.Builder<_B>>>(); for (IndexSearchHighlightField _item: _other.highlightFields) { this.highlightFields.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } else { _storedValue = _other; } } else { _storedValue = null; } }
/** * Copies all state of this object to a builder. This method is used by the {@link #copyOf} method and should not be called directly by client code. * * @param _other * A builder instance to which the state of this object will be copied. */ public<_B >void copyTo(final IndexSearchHighlightFields.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree highlightFieldsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("highlightFields")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(highlightFieldsPropertyTree!= null):((highlightFieldsPropertyTree == null)||(!highlightFieldsPropertyTree.isLeaf())))) { if (this.highlightFields == null) { _other.highlightFields = null; } else { _other.highlightFields = new ArrayList<IndexSearchHighlightField.Builder<IndexSearchHighlightFields.Builder<_B>>>(); for (IndexSearchHighlightField _item: this.highlightFields) { _other.highlightFields.add(((_item == null)?null:_item.newCopyBuilder(_other, highlightFieldsPropertyTree, _propertyTreeUse))); } } } }
public Builder(final _B _parentBuilder, final IndexSearchHighlightFields _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree highlightFieldsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("highlightFields")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(highlightFieldsPropertyTree!= null):((highlightFieldsPropertyTree == null)||(!highlightFieldsPropertyTree.isLeaf())))) { if (_other.highlightFields == null) { this.highlightFields = null; } else { this.highlightFields = new ArrayList<IndexSearchHighlightField.Builder<IndexSearchHighlightFields.Builder<_B>>>(); for (IndexSearchHighlightField _item: _other.highlightFields) { this.highlightFields.add(((_item == null)?null:_item.newCopyBuilder(this, highlightFieldsPropertyTree, _propertyTreeUse))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } }