VersionBuilders.VersionInfo.Builder


class VersionBuilders.VersionInfo.Builder


Builder for VersionInfo

Summary

Public constructors

Public functions

VersionBuilders.VersionInfo

Builds an instance from accumulated values.

VersionBuilders.VersionInfo.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setMajor(major: Int)

Sets major version.

VersionBuilders.VersionInfo.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setMinor(minor: Int)

Sets minor version.

Public constructors

Builder

Added in 1.0.0
Builder()

Public functions

build

Added in 1.0.0
fun build(): VersionBuilders.VersionInfo

Builds an instance from accumulated values.

setMajor

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setMajor(major: Int): VersionBuilders.VersionInfo.Builder

Sets major version. Incremented on breaking changes (i.e. compatibility is not guaranteed across major versions).

setMinor

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setMinor(minor: Int): VersionBuilders.VersionInfo.Builder

Sets minor version. Incremented on non-breaking changes (e.g. schema additions). Anything consuming a payload can safely consume anything with a lower minor version.