Interface IngredientSource

All Known Implementing Classes:
SimpleIngredientSource

public interface IngredientSource
Interface for objects that can provide a list of ingredients to IngredientService.
Since:
1.0
Version:
2023-01-25
  • Method Details

    • getSourceId

      String getSourceId()
      Return the unique id of the source.
    • getIngredients

      Collection<? extends BaseIngredient> getIngredients()
      Return the available ingredients.
    • getIngredient

      BaseIngredient getIngredient(String id)
      Return the ingredient with the specified id.
      Parameters:
      id - the ingredient to return