Class DiscussionResult.Builder
java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
net.ygbstudio.jbrave.core.domain.dto.result.SearchResult.Builder
net.ygbstudio.jbrave.core.domain.dto.result.DiscussionResult.Builder
- Enclosing class:
DiscussionResult
Builder for
DiscussionResult instances.-
Field Summary
Fields inherited from class net.ygbstudio.jbrave.core.domain.dto.result.SearchResult.Builder
age, article, book, cluster, clusterType, contentType, creativeWork, deepResults, extraSnippets, faq, isLive, location, metaUrl, movie, musicRecording, organization, product, productCluster, qa, rating, recipe, review, schemas, software, subtype, thumbnail, type, video -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull DiscussionResultbuild()Builds a newDiscussionResultfrom the current builder state.Sets the forum data.Methods inherited from class net.ygbstudio.jbrave.core.domain.dto.result.SearchResult.Builder
age, article, book, cluster, clusterType, contentType, creativeWork, deepResults, extraSnippets, faq, isLive, location, metaUrl, movie, musicRecording, organization, product, productCluster, qa, rating, recipe, review, schemas, software, subtype, thumbnail, type, videoMethods inherited from class net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
description, familyFriendly, fetchedContentTimestamp, isSourceBoth, isSourceLocal, language, pageAge, pageFetched, profile, title, url
-
Constructor Details
-
Builder
public Builder()Creates a new builder with all fields unset.
-
-
Method Details
-
data
Sets the forum data.- Parameters:
data- the forum data- Returns:
- this builder
-
build
Builds a newDiscussionResultfrom the current builder state.- Overrides:
buildin classSearchResult.Builder- Returns:
- a new
DiscussionResultinstance
-