VersionBuilders.VersionInfo.Builder


public final class VersionBuilders.VersionInfo.Builder


Builder for VersionInfo

Summary

Public constructors

Public methods

@NonNull VersionBuilders.VersionInfo

Builds an instance from accumulated values.

@NonNull VersionBuilders.VersionInfo.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setMajor(int major)

Sets major version.

@NonNull VersionBuilders.VersionInfo.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setMinor(int minor)

Sets minor version.

Public constructors

Builder

Added in 1.0.0
public Builder()

Public methods

build

Added in 1.0.0
public @NonNull VersionBuilders.VersionInfo build()

Builds an instance from accumulated values.

setMajor

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull VersionBuilders.VersionInfo.Builder setMajor(int major)

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)
public @NonNull VersionBuilders.VersionInfo.Builder setMinor(int minor)

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.