Class Number

    • Method Detail

      • fetcher

        public static NumberFetcher fetcher​(PhoneNumber pathNumber)
        Create a NumberFetcher to execute fetch.
        Parameters:
        pathNumber - The phone number to fetch
        Returns:
        NumberFetcher capable of executing the fetch
      • fromJson

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

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

        public final PhoneNumber getNumber()
        Returns The The phone number.
        Returns:
        The phone number
      • getCountry

        public final String getCountry()
        Returns The The name of the country.
        Returns:
        The name of the country
      • getIsoCountry

        public final String getIsoCountry()
        Returns The The ISO country code.
        Returns:
        The ISO country code
      • getOutboundCallPrice

        public final OutboundCallPrice getOutboundCallPrice()
        Returns The The OutboundCallPrice record.
        Returns:
        The OutboundCallPrice record
      • getInboundCallPrice

        public final InboundCallPrice getInboundCallPrice()
        Returns The The InboundCallPrice record.
        Returns:
        The InboundCallPrice record
      • getPriceUnit

        public final Currency getPriceUnit()
        Returns The The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy).
        Returns:
        The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy)
      • getUrl

        public final URI getUrl()
        Returns The The absolute URL of the resource.
        Returns:
        The absolute URL of the resource
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object