Fan

 

const class

obix::Contract

sys::Obj
  obix::Contract

Contract encapsulates a list of URIs to prototype objects.

Slots

emptySource

static Contract empty := Contract(Uri[,])

The empty contract with no URIs.

equalsSource

override Bool equals(Obj? that)

Overrides sys::Obj.equals

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

fromStrSource

static Contract? 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.

hashSource

override Int hash()

Overrides sys::Obj.hash

Hash code is list of URIs.

isEmptySource

Bool isEmpty()

Convenience for uris.isEmpty.

makeSource

new make(Uri[] uris)

Construct with a list of URIs.

toStrSource

override Str toStr()

Overrides sys::Obj.toStr

Return list of encoded uris separated by a space.

urisSource

const Uri[] uris

List of uris.