Interface Venue
- All Known Implementing Classes:
VenueImpl
public interface Venue
Defines methods implemented by classes representing a sport event venue
-
Method Summary
Modifier and TypeMethodDescriptionReturns the capacity of the venue associated with currentVenueinstanceReturns an unmodifiableMapcontaining venue's city names in different languagesReturns the city name in the specified languageReturns the map coordinates specifying the exact location of the venue represented by currentVenueReturns an unmodifiableMapcontaining venue's country names in different languagesgetCountry(Locale locale) Returns the country name in the specified languageReturns the associated country codeGets the list of the course holesgetId()Returns the name of the venue in the specified languagegetNames()Returns an unmodifiableMapcontaining venue's names in different languagesdefault StringgetState()Returns state/province of the country
-
Method Details
-
getId
Urn getId() -
getName
Returns the name of the venue in the specified language- Parameters:
locale- - aLocalespecifying the language of the returned venue name- Returns:
- - the name of the venue in the specified language
-
getCity
Returns the city name in the specified language- Parameters:
locale- - aLocalespecifying the language of the returned city name- Returns:
- - the city name in the specified language
-
getCountry
Returns the country name in the specified language- Parameters:
locale- - aLocalespecifying the language of the returned country name- Returns:
- - the country name in the specified language
-
getNames
Returns an unmodifiableMapcontaining venue's names in different languages- Returns:
- - an unmodifiable
Mapcontaining venue's names in different languages
-
getCities
Returns an unmodifiableMapcontaining venue's city names in different languages- Returns:
- - an unmodifiable
Mapcontaining venue's city names in different languages
-
getCountries
Returns an unmodifiableMapcontaining venue's country names in different languages- Returns:
- - an unmodifiable
Mapcontaining venue's country names in different languages
-
getCapacity
Integer getCapacity()Returns the capacity of the venue associated with currentVenueinstance- Returns:
- - the capacity of the venue, or a null if the capacity is not specified
-
getCoordinates
String getCoordinates()Returns the map coordinates specifying the exact location of the venue represented by currentVenue- Returns:
- - the map coordinates specifying the exact location of the venue
-
getCountryCode
String getCountryCode()Returns the associated country code- Returns:
- the associated country code
-
getState
Returns state/province of the country- Returns:
- state
- Throws:
UnsupportedOperationException- when method isn't implemented
-
getCourses
Gets the list of the course holes- Returns:
- the list of the course holes
-