Class InfoboxPlace.Builder
java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
net.ygbstudio.jbrave.core.domain.dto.result.AbstractGraphInfobox.Builder
net.ygbstudio.jbrave.core.domain.dto.result.InfoboxPlace.Builder
- Enclosing class:
InfoboxPlace
Builder for
InfoboxPlace instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull InfoboxPlacebuild()Builds a newInfoboxPlacefrom the current builder state.location(LocationResult location) Sets the location.Sets the place subtype.Methods inherited from class net.ygbstudio.jbrave.core.domain.dto.result.AbstractGraphInfobox.Builder
attributes, category, distance, images, label, longDesc, movie, position, profiles, providers, ratings, thumbnail, type, websiteUrlMethods 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
-
subType
Sets the place subtype.- Parameters:
subType- the subtype- Returns:
- this builder
-
location
Sets the location.- Parameters:
location- the location- Returns:
- this builder
-
build
Builds a newInfoboxPlacefrom the current builder state.- Overrides:
buildin classAbstractGraphInfobox.Builder- Returns:
- a new
InfoboxPlaceinstance
-