forked from ghostwriternr/MLAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStocks.java
58 lines (48 loc) · 1.28 KB
/
Stocks.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mymlas;
/**
*
* @author ghost_000
*/
public class Stocks {
private String Item_Name_;
private int Quantity_;
private int Threshold_;
public Stocks(){
Item_Name_ = "";
Quantity_ = 0;
Threshold_ = 0;
}
public Stocks(String item_name,int quantity,int threshold){
Item_Name_ = item_name;
Quantity_ = quantity;
Threshold_ = threshold;
}
public Stocks(Stocks stock){
Item_Name_ = stock.get_Item_Name();
Quantity_ = stock.get_Quantity();
Threshold_ = stock.get_Threshold();
}
public String get_Item_Name() {
return Item_Name_;
}
public void set_Item_Name(String name) {
Item_Name_ = name;
}
public int get_Quantity() {
return Quantity_;
}
public void set_Quantity(int quantity) {
Quantity_ = quantity;
}
public int get_Threshold() {
return Threshold_;
}
public void set_Threshold(int threshold) {
Threshold_ = threshold;
}
}