Interface RegulatoryRules


public interface RegulatoryRules
Interface for regulatory rules by zone. Handles things like caloric rounding rules, etc...
Version:
2024-07-21
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Populate a NutritionResults for the specified nutrition data at the volume specified in the results.
  • Method Details

    • addRoundedResults

      void addRoundedResults(NutritionVolume results, RecipeNutritionData data)
      Populate a NutritionResults for the specified nutrition data at the volume specified in the results. This should apply the type specific rounding rules for the region.
      Parameters:
      results - the results to add RoundedResult data to
      data - the nutrition data to round