VersionedPackage


public final class VersionedPackage
extends Object implements Parcelable

java.lang.Object
   ↳ android.content.pm.VersionedPackage


Encapsulates a package and its version code.

Summary

Inherited constants

Fields

public static final Creator<VersionedPackage> CREATOR

Public constructors

VersionedPackage(String packageName, int versionCode)

Creates a new instance.

VersionedPackage(String packageName, long versionCode)

Creates a new instance.

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

boolean equals(Object o)

Indicates whether some other object is "equal to" this one.

long getLongVersionCode()

Gets the version code.

String getPackageName()

Gets the package name.

int getVersionCode()

This method was deprecated in API level 28. use