interledger-deprecated / java-ilp-core

WE'VE MOVED: This project has moved to Hyperledger Quilt
https://github.com/hyperledger/quilt/tree/master/ilp-core
Apache License 2.0
16 stars 10 forks source link

Add precondition checks to InterledgerAddress relating to ledger prefixes #97

Closed sappenin closed 6 years ago

sappenin commented 6 years ago

When a particular method has an InterledgerAddress as a parameter, I often find myself asserting that the address is a ledger-prefix (or the opposite).

We should add these precondition utlility methods into the InterledgerAddress interface so they can function similarly to Objects.requireNonNull.