Class LocationResult.Builder
java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
net.ygbstudio.jbrave.core.domain.dto.result.LocationResult.Builder
- Enclosing class:
LocationResult
Builder for
LocationResult instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the action.@NotNull LocationResultbuild()Builds a newLocationResultfrom the current builder state.categories(List<String> categories) Sets the categories.Sets the contact information.coordinates(List<Double> coordinates) Sets the coordinates.Sets the distance.iconCategory(String iconCategory) Sets the icon category.Sets the location identifier.openingHours(OpeningHours openingHours) Sets the opening hours.pictures(PictureResults pictures) Sets the pictures.postalAddress(PostalAddress postalAddress) Sets the postal address.priceRange(String priceRange) Sets the price range.profiles(List<DataProvider> profiles) Sets the profiles.providerUrl(String providerUrl) Sets the provider URL.Sets the rating.Sets the reviews.servesCuisine(List<String> servesCuisine) Sets the served cuisines.Sets the thumbnail.Sets the timezone.timezoneOffset(String timezoneOffset) Sets the timezone offset.Sets the location type.Sets the zoom level.Methods 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
-
type
Sets the location type.- Parameters:
type- the location type- Returns:
- this builder
-
id
Sets the location identifier.- Parameters:
id- the location id- Returns:
- this builder
-
providerUrl
Sets the provider URL.- Parameters:
providerUrl- the provider URL- 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
-
thumbnail
Sets the thumbnail.- Parameters:
thumbnail- the thumbnail- Returns:
- this builder
-
postalAddress
Sets the postal address.- Parameters:
postalAddress- the postal address- Returns:
- this builder
-
openingHours
Sets the opening hours.- Parameters:
openingHours- the opening hours- Returns:
- this builder
-
contact
Sets the contact information.- Parameters:
contact- the contact- Returns:
- this builder
-
priceRange
Sets the price range.- Parameters:
priceRange- the price range- Returns:
- this builder
-
rating
Sets the rating.- Parameters:
rating- the rating- Returns:
- this builder
-
distance
Sets the distance.- Parameters:
distance- the distance- Returns:
- this builder
-
profiles
Sets the profiles.- Parameters:
profiles- the profiles- Returns:
- this builder
-
reviews
Sets the reviews.- Parameters:
reviews- the reviews- Returns:
- this builder
-
pictures
Sets the pictures.- Parameters:
pictures- the pictures- Returns:
- this builder
-
action
Sets the action.- Parameters:
action- the action- Returns:
- this builder
-
servesCuisine
Sets the served cuisines.- Parameters:
servesCuisine- the served cuisines- Returns:
- this builder
-
categories
Sets the categories.- Parameters:
categories- the categories- Returns:
- this builder
-
iconCategory
Sets the icon category.- Parameters:
iconCategory- the icon category- Returns:
- this builder
-
timezone
Sets the timezone.- Parameters:
timezone- the timezone- Returns:
- this builder
-
timezoneOffset
Sets the timezone offset.- Parameters:
timezoneOffset- the timezone offset- Returns:
- this builder
-
build
Builds a newLocationResultfrom the current builder state.- Overrides:
buildin classResult.Builder- Returns:
- a new
LocationResultinstance
-