Class PricingDetail

    • Constructor Detail

      • PricingDetail

        public PricingDetail()
    • Method Detail

      • setPrice

        public void setPrice​(Double price)

        The price per instance.

        Parameters:
        price - The price per instance.
      • getPrice

        public Double getPrice()

        The price per instance.

        Returns:
        The price per instance.
      • withPrice

        public PricingDetail withPrice​(Double price)

        The price per instance.

        Parameters:
        price - The price per instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCount

        public void setCount​(Integer count)

        The number of reservations available for the price.

        Parameters:
        count - The number of reservations available for the price.
      • getCount

        public Integer getCount()

        The number of reservations available for the price.

        Returns:
        The number of reservations available for the price.
      • withCount

        public PricingDetail withCount​(Integer count)

        The number of reservations available for the price.

        Parameters:
        count - The number of reservations available for the price.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object