VersionBuilders.VersionInfo


@RequiresSchemaVersion(major = 1, minor = 0)
class VersionBuilders.VersionInfo : Comparable


Version information. This is used to encode the schema version of a payload (e.g. inside of a layout).

Summary

Nested types

Builder for VersionInfo

Public functions

Int
Boolean
equals(obj: Any?)
Int

Gets major version.

Int

Gets minor version.

Int
String

Public functions

compareTo

Added in 1.1.0
fun compareTo(other: VersionBuilders.VersionInfo): Int

equals

fun equals(obj: Any?): Boolean

getMajor

Added in 1.0.0
fun getMajor(): Int

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

getMinor

Added in 1.0.0
fun getMinor(): Int

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

hashCode

fun hashCode(): Int

toString

fun toString(): String