Hellboyandso

domain_Ingredient.java

Dec 12th, 2016
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.91 KB | None | 0 0
  1. package domain;
  2.  
  3. public class Ingredient {
  4.  
  5.     private String name;
  6.     private String description;
  7.     private double price;
  8.     private int maxAmountInStock;
  9.    
  10.     public Ingredient(String name, String description, double price, int maxAmountInStock){
  11.         setName(name);
  12.         setDescription(description);
  13.         setPrice(price);
  14.         setMaxAmountInStock(maxAmountInStock);
  15.     }
  16.    
  17.     public String getName() {
  18.         return name;
  19.     }
  20.     public void setName(String name) {
  21.         this.name = name;
  22.     }
  23.     public String getDescription() {
  24.         return description;
  25.     }
  26.     public void setDescription(String description) {
  27.         this.description = description;
  28.     }
  29.     public double getPrice() {
  30.         return price;
  31.     }
  32.     public void setPrice(double price) {
  33.         this.price = price;
  34.     }
  35.     public int getMaxAmountInStock() {
  36.         return maxAmountInStock;
  37.     }
  38.     public void setMaxAmountInStock(int maxAmountInStock) {
  39.         this.maxAmountInStock = maxAmountInStock;
  40.     }  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment