const class obix::Contract
sys::Obj obix::Contract
Contract encapsulates a list of URIs to prototype objects.
- empty
-
const static Contract empty := Contract.<ctor>(Uri[,])The empty contract with no URIs.
- equals
-
virtual override Bool equals(Obj? that)Two contracts are equal if they have the same list of URIs.
- fromStr
-
static new fromStr(Str s, Bool checked := false)Parse a list of encoded URIs separated by space. If format error then throw ParseErr or return null based on checked flag.
- has
-
Return if the contract list contains the given URI
- hash
-
virtual override Int hash()Hash code is list of URIs.
- isEmpty
-
Bool isEmpty()Convenience for
uris.isEmpty. - make
-
new make(Uri[] uris)Construct with a list of URIs.
- toStr
-
virtual override Str toStr()Return list of encoded uris separated by a space.
- uris
-
const Uri[] urisList of uris.