Interface CountryObserver

All Known Implementing Classes:
PlaceGeocoder, PostalGeocoder

public interface CountryObserver
  • Method Details

    • countryInScope

      void countryInScope(String cc)
      Use a country code to signal that a country was mentioned.
      Parameters:
      cc - country code
    • countryInScope

      void countryInScope(org.opensextant.data.Country C)
      Use a country object to signal a country was mentioned or is in scope
      Parameters:
      C - country object
    • countryObserved

      boolean countryObserved(String cc)
      Have you seen this country before?
      Parameters:
      cc - country code
      Returns:
      true if observer saw country
    • countryObserved

      boolean countryObserved(org.opensextant.data.Country C)
      Have you seen this country before?
      Parameters:
      C - country object
      Returns:
      true if observer saw country
    • countryCount

      int countryCount()
    • countryMentionCount

      Map<String,CountryCount> countryMentionCount()
      Calculates totals and ratios for the discovered set of countries.
      Returns:
      map of country code : counts