const class obix::Contract

sys::Obj
  obix::Contract

Source

Contract encapsulates a list of URIs to prototype objects.

empty

const static Contract empty := Contract.<ctor>(Uri[,])

Source

The empty contract with no URIs.

equals

virtual override Bool equals(Obj? that)

Source

Two contracts are equal if they have the same list of URIs.

fromStr

static new fromStr(Str s, Bool checked := false)

Source

Parse a list of encoded URIs separated by space. If format error then throw ParseErr or return null based on checked flag.

has

Bool has(Uri contract)

Source

Return if the contract list contains the given URI

hash

virtual override Int hash()

Source

Hash code is list of URIs.

isEmpty

Bool isEmpty()

Source

Convenience for uris.isEmpty.

make

new make(Uri[] uris)

Source

Construct with a list of URIs.

toStr

virtual override Str toStr()

Source

Return list of encoded uris separated by a space.

uris

const Uri[] uris

Source

List of uris.