Skip to content

Commit 8c5f559

Browse files
committed
[java][booking][04_tell_dont_ask] Remove all getters
1 parent f31d736 commit 8c5f559

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

examples/java/java-booking-04_tell_dont_ask/src/main/java/tv/codely/booking/Customer.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,4 @@ public Customer(CustomerId id, CustomerName name, EmailAddress emailAddress) {
1010
this.name = name;
1111
this.emailAddress = emailAddress;
1212
}
13-
14-
public CustomerId id() {
15-
return id;
16-
}
17-
18-
public CustomerName name() {
19-
return name;
20-
}
21-
22-
public EmailAddress emailAddress() {
23-
return emailAddress;
24-
}
2513
}

examples/java/java-booking-04_tell_dont_ask/src/main/java/tv/codely/booking/Discount.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,4 @@ public Discount(DiscountType type, DiscountValue value) {
88
this.type = type;
99
this.value = value;
1010
}
11-
12-
public DiscountType type() {
13-
return type;
14-
}
15-
16-
public DiscountValue value() {
17-
return value;
18-
}
1911
}

examples/java/java-booking-04_tell_dont_ask/src/main/java/tv/codely/booking/Tax.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,4 @@ public Tax(TaxType type, TaxValue value) {
88
this.type = type;
99
this.value = value;
1010
}
11-
12-
public TaxType type() {
13-
return type;
14-
}
15-
16-
public TaxValue value() {
17-
return value;
18-
}
1911
}

0 commit comments

Comments
 (0)