Package

za.co.absa.commons

version

Permalink

package version

Visibility
  1. Public
  2. All

Type Members

  1. case class BuildMetadataComponent(identifiers: Component*) extends Component with Product with Serializable

    Permalink

    A build metadata component [SemVer] It behaves as {{EmptyComponent}} when comparing to other components, i.e.

    A build metadata component [SemVer] It behaves as {{EmptyComponent}} when comparing to other components, i.e. it doesn't count.

    identifiers

    build identifiers

    See also

    https://semver.org/spec/v2.0.0.html#spec-item-10

  2. sealed trait Component extends Ordered[Component]

    Permalink

    Represents one section of a version string E.g.

    Represents one section of a version string E.g. for the version string "1.foo.42" the components would be "1", "foo" and "42".

  3. case class NumericComponent(x: BigInt) extends Component with Product with Serializable

    Permalink

    A numeric component.

    A numeric component. Compares naturally to itself.

  4. case class PreReleaseComponent(identifiers: Component*) extends Component with Product with Serializable

    Permalink

    A pre-release component [SemVer]

    A pre-release component [SemVer]

    Precedence for a pre-release component is determined by comparing each identifier from left to right until a difference is found as follows: - identifiers consisting of only digits are compared numerically - identifiers with letters or hyphens are compared lexically in ASCII sort order - numeric identifiers always have lower precedence than non-numeric identifiers - a larger set of fields has a higher precedence than a smaller set, if all of the preceding identifiers are equal

    Example: alpha < alpha.1 < alpha.beta < beta < beta.2 < beta.11 < rc.1

    A pre-release component have a lower precedence than an empty component.

    identifiers

    build identifiers

    See also

    https://semver.org/spec/v2.0.0.html#spec-item-9

  5. case class StringComponent(s: String) extends Component with Product with Serializable

    Permalink

    A string component.

    A string component. String components are compared lexicographically and have higher precedence than numeric components.

  6. case class Version(components: Component*) extends Ordered[Version] with Product with Serializable

    Permalink

Value Members

  1. object Component

    Permalink
  2. object EmptyComponent extends Component with Product with Serializable

    Permalink

    An empty component.

    An empty component. It's less than any other component, unless the other component explicitly states otherwise.

  3. object Version extends SimpleVersionImpl with SemVer20Impl with Serializable

    Permalink
  4. package impl

    Permalink

Ungrouped