public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theTagCode; theTagCode = this.getTagCode(); strategy.appendField(locator, this, "tagCode", buffer, theTagCode, (this.tagCode!= null)); } { long theCount; theCount = this.getCount(); strategy.appendField(locator, this, "count", buffer, theCount, true); } { String theTagDisplayName; theTagDisplayName = this.getTagDisplayName(); strategy.appendField(locator, this, "tagDisplayName", buffer, theTagDisplayName, (this.tagDisplayName!= null)); } return buffer; }
/** * create tag index search response facet * * @param tagTypeIndexSearchResponseDto response dto * * @return tag type facet */ private Facet createTagTypeFacet(TagTypeIndexSearchResponseDto tagTypeIndexSearchResponseDto) { List<Facet> tagFacets = new ArrayList<>(); if (tagTypeIndexSearchResponseDto.getTagIndexSearchResponseDtos() != null) { for (TagIndexSearchResponseDto tagIndexSearchResponseDto : tagTypeIndexSearchResponseDto.getTagIndexSearchResponseDtos()) { long facetCount = tagIndexSearchResponseDto.getCount(); Facet tagFacet = new Facet(tagIndexSearchResponseDto.getTagDisplayName(), facetCount, FacetTypeEnum.TAG.value(), tagIndexSearchResponseDto.getTagCode(), null); tagFacets.add(tagFacet); } } return new Facet(tagTypeIndexSearchResponseDto.getDisplayName(), null, FacetTypeEnum.TAG_TYPE.value(), tagTypeIndexSearchResponseDto.getCode(), tagFacets); }
/** * create tag index search response facet * * @param tagTypeIndexSearchResponseDto response dto * * @return tag type facet */ private Facet createTagTypeFacet(TagTypeIndexSearchResponseDto tagTypeIndexSearchResponseDto) { List<Facet> tagFacets = new ArrayList<>(); if (tagTypeIndexSearchResponseDto.getTagIndexSearchResponseDtos() != null) { for (TagIndexSearchResponseDto tagIndexSearchResponseDto : tagTypeIndexSearchResponseDto.getTagIndexSearchResponseDtos()) { long facetCount = tagIndexSearchResponseDto.getCount(); Facet tagFacet = new Facet(tagIndexSearchResponseDto.getTagDisplayName(), facetCount, FacetTypeEnum.TAG.value(), tagIndexSearchResponseDto.getTagCode(), null); tagFacets.add(tagFacet); } } return new Facet(tagTypeIndexSearchResponseDto.getDisplayName(), null, FacetTypeEnum.TAG_TYPE.value(), tagTypeIndexSearchResponseDto.getCode(), tagFacets); }
new Facet(tagIndexDto.getTagDisplayName(), tagIndexDto.getCount(), FacetTypeEnum.TAG.value(), tagIndexDto.getTagCode(), null));
new Facet(tagIndexDto.getTagDisplayName(), tagIndexDto.getCount(), FacetTypeEnum.TAG.value(), tagIndexDto.getTagCode(), null));
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theTagCode; theTagCode = this.getTagCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagCode", theTagCode), currentHashCode, theTagCode, (this.tagCode!= null)); } { long theCount; theCount = this.getCount(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "count", theCount), currentHashCode, theCount, true); } { String theTagDisplayName; theTagDisplayName = this.getTagDisplayName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagDisplayName", theTagDisplayName), currentHashCode, theTagDisplayName, (this.tagDisplayName!= null)); } return currentHashCode; }
if (countShouldBeCopiedAndSet == Boolean.TRUE) { long sourceCount; sourceCount = this.getCount(); long copyCount = strategy.copy(LocatorUtils.property(locator, "count", sourceCount), sourceCount, true); copy.setCount(copyCount);