Class VenueCi
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.ci.VenueCi
A venue representation used by caching components
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of theVenueCiclassVenueCi(ExportableVenueCi exportable) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether the specified object is equal to the current objectexport()Returns the capacity of the venue associated with current instance, or a null reference if the capacity is not specifiedgetCityName(Locale locale) Returns the city name of the venue in the specified languageReturns the map coordinates specifying the exact location of the venue represented by current instanceReturns the associated country codegetCountryName(Locale locale) Returns the country name of the venue in the specified languageReturns state/province of the countrygetId()Returns theUrnof the represented sport entityReturns the name of the venue in the specified languagegetState()Returns state/province of the countryinthashCode()Serves as the default hash functionbooleanhasTranslationsFor(List<Locale> locales) voidMerges the information from the providedSapiVenueinto the current instance
-
Constructor Details
-
Method Details
-
merge
Merges the information from the providedSapiVenueinto the current instance- Parameters:
venue- -SapiVenuecontaining information about the venuelocale- -Localespecifying the language of the venue
-
getName
Returns the name of the venue in the specified language- Parameters:
locale- -Localespecifying the language of the returned name- Returns:
- - The name of the venue in the specified language if it exists. Null otherwise.
-
getCityName
Returns the city name of the venue in the specified language- Parameters:
locale- -Localespecifying the language of the returned name- Returns:
- - The city name of the venue in the specified language if it exists. Null otherwise.
-
getCountryName
Returns the country name of the venue in the specified language- Parameters:
locale- -Localespecifying the language of the returned name- Returns:
- - The country name of the venue in the specified language if it exists. Null otherwise.
-
getCapacity
Returns the capacity of the venue associated with current instance, or a null reference if the capacity is not specified- Returns:
- - the capacity of the venue associated with current instance, or a null reference if the capacity is not specified
-
getCoordinates
Returns the map coordinates specifying the exact location of the venue represented by current instance- Returns:
- - the map coordinates specifying the exact location of the venue represented by current instance
-
getCountryCode
Returns the associated country code- Returns:
- the associated country code
-
getState
Returns state/province of the country- Returns:
- state
-
getCourses
Returns state/province of the country- Returns:
- state
-
hasTranslationsFor
-
export
-
getId
Returns theUrnof the represented sport entity- Returns:
- - the
Urnof the represented sport entity
-
equals
Determines whether the specified object is equal to the current object -
hashCode
public int hashCode()Serves as the default hash function
-