Interface Product

    • Method Detail

      • getAvailable

        Collection<Product> getAvailable()
        Returns:
        an array of other Product that can be purchased with that one
      • getIncluded

        Collection<Product> getIncluded()
        Returns:
        an array of other Product that are already included within this one
      • getCategory

        ProductCategory getCategory()
        Returns:
        the ProductCategory associated with that Product
      • getCatalogName

        String getCatalogName()
        Returns:
        the name of the catalog where this Product has been defined
      • getLimits

        Limit[] getLimits()
        Returns:
        the limits associated with this product
      • compliesWithLimits

        boolean compliesWithLimits​(String unit,
                                   BigDecimal value)
        Returns:
        whether the given unit-value pair meets the limits of the product