-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathCustomer.java
More file actions
35 lines (28 loc) · 810 Bytes
/
Customer.java
File metadata and controls
35 lines (28 loc) · 810 Bytes
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
package org.prgrms.kdtspringdemo.customer.domain;
import java.util.UUID;
public class Customer {
private final UUID customerId;
private final String name;
private final boolean isBlack;
public Customer(UUID customerId, String name, boolean isBlack) {
this.customerId = customerId;
this.name = name;
this.isBlack = isBlack;
}
public UUID getCustomerId() {
return customerId;
}
public String getName() {
return name;
}
public boolean isBlack() {
return isBlack;
}
@Override
public String toString() {
return "=======================\n"+
"customerId : " + customerId + "\n" +
"customer name : " + name + "\n" +
"isBlack : " + isBlack + "\n";
}
}