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 Summary
Modifier and TypeMethodDescriptiongetIngredient
(String id) Return the ingredient with the specified id.Collection<? extends BaseIngredient>
Return the available ingredients.Return the unique id of the source.
-
Method Details
-
getSourceId
String getSourceId()Return the unique id of the source. -
getIngredients
Collection<? extends BaseIngredient> getIngredients()Return the available ingredients. -
getIngredient
Return the ingredient with the specified id.- Parameters:
id
- the ingredient to return
-