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.
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 toObjects.requireNonNull
.