const class std::Depend

sys::Obj
  std::Depend

@Serializable { simple=true }

Depend models a dependency as a pod name and a version constraint. Convention for Fantom pods is a four part version format of major.minor.build.patch.

The string format for Depend:

<depend>        := <name> space <version>
<version>       := <digits> ["." <digits>]*
<digits>        := <digit> [<digits>]*
<digit>         := "0" - "9"

Examples:

"foo 1.2"      Any version of foo 1.2 with any build or patch number
"foo 1.2.64"   Any version of foo 1.2.64 with any patch number
equals

virtual override Bool equals(Obj? that)

Two Depends are equal if they have same normalized string representation.

fromStr

static new fromStr(Str s)

Parse the string according into a dependency. See class header for specification of the format. If invalid format and checked is false return null, otherwise throw ParseErr.

hash

virtual override Int hash()

Return a hash code based on the normalized string representation.

match

Bool match(Version v)

Return if the specified version is a match against this dependency's constraints. See class header for matching rules.

name

const Str name

Get the pod name of the dependency.

toStr

virtual override Str toStr()

Get the normalized string format of this dependency. Normalized dependency strings do not contain any optional spaces. See class header for specification of the format.

version

const Version version

Get the version constraint