operator == method
- Object other
override
Equality is defined in RFC 8141 Section 3: URN equivalence.
Note that:
"If an r-component, q-component, or f-component (or any combination thereof) is included in a URN, it MUST be ignored for purposes of determining URN-equivalence."
Implementation
@override
bool operator ==(Object other) =>
other is Urn && other.nid == nid && other.nss == nss;