Class PhoneNumberPrice


  • public class PhoneNumberPrice
    extends Object
    Object representation of a price of a phone number.

    For more information see: Pricing Docs

    • Constructor Detail

      • PhoneNumberPrice

        public PhoneNumberPrice​(double basePrice,
                                double currentPrice,
                                PhoneNumberPrice.Type type)
        Initialize a PhoneNumberPrice.
        Parameters:
        basePrice - base price of the phone number
        currentPrice - current price of the phone number
        type - type of phone number
    • Method Detail

      • getBasePrice

        public double getBasePrice()
        Returns the base price of the phone number.
        Returns:
        the base price of the phone number
      • getCurrentPrice

        public double getCurrentPrice()
        Returns the current price of the phone number.
        Returns:
        the current price of the phone number
      • getType

        public PhoneNumberPrice.Type getType()
        Returns the type of phone number.
        Returns:
        the type of phone number
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object