-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Manish Dait <[email protected]>
- Loading branch information
1 parent
887c6bb
commit 01c1e86
Showing
6 changed files
with
36 additions
and
7 deletions.
There are no files selected for viewing
14 changes: 13 additions & 1 deletion
14
hiero-enterprise-base/src/main/java/com/openelements/hiero/base/data/CustomFee.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
package com.openelements.hiero.base.data; | ||
|
||
import org.jspecify.annotations.NonNull; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
public record CustomFee(List<FixedFee> fixedFees, List<FractionalFee> fractionalFees, List<RoyaltyFee> royaltyFees) { | ||
public record CustomFee( | ||
@NonNull List<FixedFee> fixedFees, | ||
@NonNull List<FractionalFee> fractionalFees, | ||
@NonNull List<RoyaltyFee> royaltyFees | ||
) { | ||
public CustomFee { | ||
Objects.requireNonNull(fixedFees, "fixedFees must not be null"); | ||
Objects.requireNonNull(fractionalFees, "fractionalFees must not be null"); | ||
Objects.requireNonNull(royaltyFees, "royaltyFees must not be null"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters