Package com.dzidzi.dto.menu
Class Menu
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.merge.MenuExtraComposition
com.dzidzi.dto.menu.Menu
Represents a menu item of the Api.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMenu(UUID id, String name, BigDecimal price, String description, RestaurantEntityApi restaurant, Image image, MenuCategory category, boolean visible) -
Method Summary
Modifier and TypeMethodDescriptionstatic Menu.Builderbuilder()TheMenuCategorythis menu falls underThe description of the menu itemgetImage()The image of the menu itemTheRestaurantwho owns this menubooleanA flag to disable menu from showing to usersvoidsetDescription(String description) The description of the menu itemMethods inherited from class com.dzidzi.dto.merge.MenuExtraComposition
getName, getPrice, setName
-
Constructor Details
-
Method Details
-
builder
-
getDescription
The description of the menu item -
getRestaurant
TheRestaurantwho owns this menu -
getImage
The image of the menu item -
getCategory
TheMenuCategorythis menu falls under -
isVisible
public boolean isVisible()A flag to disable menu from showing to users -
setDescription
The description of the menu item
-