Interface Venue

All Known Implementing Classes:
VenueImpl

public interface Venue
Defines methods implemented by classes representing a sport event venue
  • Method Details

    • getId

      Urn getId()
      Returns a unique Urn identifier representing the current Venue instance
      Returns:
      - a unique Urn identifier representing the current Venue instance
    • getName

      String getName(Locale locale)
      Returns the name of the venue in the specified language
      Parameters:
      locale - - a Locale specifying the language of the returned venue name
      Returns:
      - the name of the venue in the specified language
    • getCity

      String getCity(Locale locale)
      Returns the city name in the specified language
      Parameters:
      locale - - a Locale specifying the language of the returned city name
      Returns:
      - the city name in the specified language
    • getCountry

      String getCountry(Locale locale)
      Returns the country name in the specified language
      Parameters:
      locale - - a Locale specifying the language of the returned country name
      Returns:
      - the country name in the specified language
    • getNames

      Map<Locale,String> getNames()
      Returns an unmodifiable Map containing venue's names in different languages
      Returns:
      - an unmodifiable Map containing venue's names in different languages
    • getCities

      Map<Locale,String> getCities()
      Returns an unmodifiable Map containing venue's city names in different languages
      Returns:
      - an unmodifiable Map containing venue's city names in different languages
    • getCountries

      Map<Locale,String> getCountries()
      Returns an unmodifiable Map containing venue's country names in different languages
      Returns:
      - an unmodifiable Map containing venue's country names in different languages
    • getCapacity

      Integer getCapacity()
      Returns the capacity of the venue associated with current Venue instance
      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 current Venue
      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

      default String getState()
      Returns state/province of the country
      Returns:
      state
      Throws:
      UnsupportedOperationException - when method isn't implemented
    • getCourses

      default List<Course> getCourses()
      Gets the list of the course holes
      Returns:
      the list of the course holes