public TagIndexSearchResponseDto.Builder<Void> newCopyBuilder() { return newCopyBuilder(null); }
public TagIndexSearchResponseDto.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 TagTypeIndexSearchResponseDto.Builder<_B> _other) { _other.code = this.code; if (this.tagIndexSearchResponseDtos == null) { _other.tagIndexSearchResponseDtos = null; } else { _other.tagIndexSearchResponseDtos = new ArrayList<TagIndexSearchResponseDto.Builder<TagTypeIndexSearchResponseDto.Builder<_B>>>(); for (TagIndexSearchResponseDto _item: this.tagIndexSearchResponseDtos) { _other.tagIndexSearchResponseDtos.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } _other.displayName = this.displayName; }
public Builder(final _B _parentBuilder, final TagTypeIndexSearchResponseDto _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.code = _other.code; if (_other.tagIndexSearchResponseDtos == null) { this.tagIndexSearchResponseDtos = null; } else { this.tagIndexSearchResponseDtos = new ArrayList<TagIndexSearchResponseDto.Builder<TagTypeIndexSearchResponseDto.Builder<_B>>>(); for (TagIndexSearchResponseDto _item: _other.tagIndexSearchResponseDtos) { this.tagIndexSearchResponseDtos.add(((_item == null)?null:_item.newCopyBuilder(this))); } } this.displayName = _other.displayName; } 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 TagTypeIndexSearchResponseDto.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree codePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("code")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(codePropertyTree!= null):((codePropertyTree == null)||(!codePropertyTree.isLeaf())))) { _other.code = this.code; } final PropertyTree tagIndexSearchResponseDtosPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tagIndexSearchResponseDtos")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tagIndexSearchResponseDtosPropertyTree!= null):((tagIndexSearchResponseDtosPropertyTree == null)||(!tagIndexSearchResponseDtosPropertyTree.isLeaf())))) { if (this.tagIndexSearchResponseDtos == null) { _other.tagIndexSearchResponseDtos = null; } else { _other.tagIndexSearchResponseDtos = new ArrayList<TagIndexSearchResponseDto.Builder<TagTypeIndexSearchResponseDto.Builder<_B>>>(); for (TagIndexSearchResponseDto _item: this.tagIndexSearchResponseDtos) { _other.tagIndexSearchResponseDtos.add(((_item == null)?null:_item.newCopyBuilder(_other, tagIndexSearchResponseDtosPropertyTree, _propertyTreeUse))); } } } final PropertyTree displayNamePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("displayName")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(displayNamePropertyTree!= null):((displayNamePropertyTree == null)||(!displayNamePropertyTree.isLeaf())))) { _other.displayName = this.displayName; } }
this.tagIndexSearchResponseDtos = new ArrayList<TagIndexSearchResponseDto.Builder<TagTypeIndexSearchResponseDto.Builder<_B>>>(); for (TagIndexSearchResponseDto _item: _other.tagIndexSearchResponseDtos) { this.tagIndexSearchResponseDtos.add(((_item == null)?null:_item.newCopyBuilder(this, tagIndexSearchResponseDtosPropertyTree, _propertyTreeUse)));