added modified data driven version
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
package com.pfefferminzia.petinsurance.animals;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
|
||||
public sealed interface Animal permits Dog, Cat, SmallAnimal {
|
||||
|
||||
LocalDate birthday();
|
||||
|
||||
BigDecimal getBaseInsuranceSum();
|
||||
|
||||
default BigDecimal getPremiumAdjustment() {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user