docs: update special case

This commit is contained in:
Ilkka Seppälä
2024-05-21 11:43:30 +03:00
parent dde2a78a46
commit 3703aa6e64
5 changed files with 195 additions and 325 deletions
@@ -24,16 +24,14 @@
*/
package com.iluwatar.specialcase;
import lombok.RequiredArgsConstructor;
/**
* Represents the money transaction taking place at a given moment.
*/
@RequiredArgsConstructor
public class MoneyTransaction {
private Double amount;
private Double price;
public MoneyTransaction(Double amount, Double price) {
this.amount = amount;
this.price = price;
}
private final Double amount;
private final Double price;
}