Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a353ee4

Browse files
SPSP
SP
authored and
SP
committedApr 19, 2025
iluwatar#1263 - creating Product and ProductViewModel
1 parent 6d37a13 commit a353ee4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
 
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.iluwatar.viewhelper;
2+
3+
import java.math.BigDecimal;
4+
import java.time.LocalDate;
5+
6+
/**
7+
* Definition of product.
8+
*/
9+
10+
public record Product(String name, BigDecimal price, LocalDate releaseDate, boolean discounted) {
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.iluwatar.viewhelper;
2+
3+
/**
4+
* Class defining formatted display data of a {@link Product}.
5+
*/
6+
public record ProductViewModel(String name, String price, String releasedDate) {
7+
}

0 commit comments

Comments
 (0)
Please sign in to comment.