Class PriceTypeDetail

java.lang.Object
com.broadleafcommerce.catalog.domain.commerce.PriceTypeDetail
All Implemented Interfaces:
Serializable

public class PriceTypeDetail extends Object implements Serializable
Summary of the info for a specific type of price (e.g., salePrice). This contains the currency and "best" price for a type of price.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    PriceTypeDetail(javax.money.MonetaryAmount bestPrice, String type)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    javax.money.MonetaryAmount
    The determined best price value for this type of price from amongst all the candidates.
    The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
    int
     
    void
    setBestPrice(javax.money.MonetaryAmount bestPrice)
    The determined best price value for this type of price from amongst all the candidates.
    void
    The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PriceTypeDetail

      public PriceTypeDetail()
    • PriceTypeDetail

      public PriceTypeDetail(javax.money.MonetaryAmount bestPrice, String type)
  • Method Details

    • getBestPrice

      public javax.money.MonetaryAmount getBestPrice()
      The determined best price value for this type of price from amongst all the candidates.
      Returns:
      The determined best price value for this type of price from amongst all the candidates.
    • getType

      public String getType()
      The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
      Returns:
      The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
    • setBestPrice

      public void setBestPrice(javax.money.MonetaryAmount bestPrice)
      The determined best price value for this type of price from amongst all the candidates.
      Parameters:
      bestPrice - The determined best price value for this type of price from amongst all the candidates.
    • setType

      public void setType(String type)
      The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
      Parameters:
      type - The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object