-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOrder.java
50 lines (40 loc) · 1.08 KB
/
Order.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
package com.salimov.yurii.lesson06.task03;
public final class Order {
private int clientId;
private int productId;
private String comment;
public Order(
final int clientId,
final int productId,
final String comment
) {
this.clientId = clientId;
this.productId = productId;
this.comment = comment;
}
@Override
public String toString() {
return "Order:\n" +
"\tclientId - " + this.clientId + "\n" +
"\tproductId - " + this.productId + "\n" +
"\tcomment - " + this.comment;
}
public void setClientId(final int client) {
this.clientId = client;
}
public int getClientId() {
return this.clientId;
}
public void setProductId(final int productId) {
this.productId = productId;
}
public int getProductId() {
return this.productId;
}
public void setComment(final String comment) {
this.comment = comment;
}
public String getComment() {
return this.comment;
}
}