Class InfoboxWithLocation.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.InfoboxWithLocation.Builder
- Enclosing class:
InfoboxWithLocation
Builder for
InfoboxWithLocation instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull InfoboxWithLocationbuild()Builds a newInfoboxWithLocationfrom the current builder state.coordinates(List<Double> coordinates) Sets the coordinates.isLocation(Boolean isLocation) Sets whether this is a location.location(LocationResult location) Sets the location.Sets the infobox subtype.Sets the zoom level.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 infobox subtype.- Parameters:
subType- the subtype- Returns:
- this builder
-
isLocation
Sets whether this is a location.- Parameters:
isLocation-trueif this is a location- Returns:
- this builder
-
coordinates
Sets the coordinates.- Parameters:
coordinates- the coordinates- Returns:
- this builder
-
zoomLevel
Sets the zoom level.- Parameters:
zoomLevel- the zoom level- Returns:
- this builder
-
location
Sets the location.- Parameters:
location- the location- Returns:
- this builder
-
build
Builds a newInfoboxWithLocationfrom the current builder state.- Overrides:
buildin classAbstractGraphInfobox.Builder- Returns:
- a new
InfoboxWithLocationinstance
-