Class Country

    • Method Detail

      • fromJson

        public static Country fromJson​(String json,
                                       com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a Country object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        Country object represented by the provided JSON
      • fromJson

        public static Country fromJson​(InputStream json,
                                       com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Country object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Country object represented by the provided JSON
      • getIsoCode

        public final String getIsoCode()
      • getName

        public final String getName()
      • getContinent

        public final String getContinent()
      • getCountryCodes

        public final List<String> getCountryCodes()
      • getLowRiskNumbersEnabled

        public final Boolean getLowRiskNumbersEnabled()
      • getHighRiskSpecialNumbersEnabled

        public final Boolean getHighRiskSpecialNumbersEnabled()
      • getHighRiskTollfraudNumbersEnabled

        public final Boolean getHighRiskTollfraudNumbersEnabled()
      • getUrl

        public final URI getUrl()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object