public final class

VersionBuilders.VersionInfo

extends java.lang.Object

implements java.lang.Comparable<VersionBuilders.VersionInfo>

 java.lang.Object

↳androidx.wear.protolayout.expression.VersionBuilders.VersionInfo

Overview

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

Summary

Methods
public intcompareTo(VersionBuilders.VersionInfo other)

public booleanequals(java.lang.Object obj)

public static VersionBuilders.VersionInfofromProto(VersionProto.VersionInfo proto)

Creates a new wrapper instance from the proto.

public static VersionBuilders.VersionInfofromProto(VersionProto.VersionInfo proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public FingerprintgetFingerprint()

Get the fingerprint for this object, or null if unknown.

public intgetMajor()

Gets major version.

public intgetMinor()

Gets minor version.

public inthashCode()

public VersionProto.VersionInfotoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Methods

public int getMajor()

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

public int getMinor()

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.

public Fingerprint getFingerprint()

Get the fingerprint for this object, or null if unknown.

public static VersionBuilders.VersionInfo fromProto(VersionProto.VersionInfo proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

Creates a new wrapper instance from the proto. Intended for testing purposes only. An object created using this method can't be added to any other wrapper.

public VersionProto.VersionInfo toProto()

Returns the internal proto instance.

public java.lang.String toString()

public int compareTo(VersionBuilders.VersionInfo other)

public int hashCode()

public boolean equals(java.lang.Object obj)