Class UserLocation


  • public class UserLocation
    extends Object
    A Users location in the world as set by the user.
    Has country info and may have region info.

    This class is immutable and thread-safe.
    • Method Detail

      • getCountry

        public LocationInfo getCountry()
        Gets the LocationInfo for the country. The country code is ISO 3166-1 alpha-2.
        Returns:
        a LocationInfo with the country
      • getRegion

        public Optional<LocationInfo> getRegion()
        Gets the LocationInfo for the region of the country.

        The region code is custom and specific to SRC.
        Returns:
        an Optional with the region location info