-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCharge.java
More file actions
101 lines (96 loc) · 1.64 KB
/
Copy pathCharge.java
File metadata and controls
101 lines (96 loc) · 1.64 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package com.sinllychen.string;
import java.io.Serializable;
import java.util.Date;
public class Charge implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private long num;
private String name;//姓名
private String from;//来源
private String time;//发生的时间
private double money;//收支金额
private int type;//1表示收入,-1表示支出
public Charge(){};
public Charge(long num,String name,String from,String time,double money,int type){
this.num=num;
this.name=name;
this.from=from;
this.time=time;
this.money=money;
this.type=type;
};
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the from
*/
public String getFrom() {
return from;
}
/**
* @param from the from to set
*/
public void setFrom(String from) {
this.from = from;
}
/**
* @return the time
*/
public String getTime() {
return time;
}
/**
* @param time the time to set
*/
public void setTime(String time) {
this.time = time;
}
/**
* @return the money
*/
public double getMoney() {
return money;
}
/**
* @param money the money to set
*/
public void setMoney(double money) {
this.money = money;
}
/**
* @return the type
*/
public int getType() {
return type;
}
/**
* @param type the type to set
*/
public void setType(int type) {
this.type = type;
}
/**
* @return the num
*/
public long getNum() {
return num;
}
/**
* @param num the num to set
*/
public void setNum(long num) {
this.num = num;
}
}