Created
September 30, 2018 09:21
-
-
Save gcandal/b49bad3d13cb279a63178d2ec53650d4 to your computer and use it in GitHub Desktop.
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
class AccountingLedger { | |
AccountingLedger(AccountingLedgerStorage storage) { | |
this.storage = Objects.requireNonNull(storage); | |
} | |
void save(final Record record) { | |
Objects.requireNonNull(record); | |
validate(record); | |
storage.save(record); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment