Class LocalPkgInfo
- java.lang.Object
-
- com.android.sdklib.repository.legacy.local.LocalPkgInfo
-
- All Implemented Interfaces:
java.lang.Comparable<LocalPkgInfo>
- Direct Known Subclasses:
LocalExtraPkgInfo,LocalPlatformPkgInfo,LocalSysImgPkgInfo
@Deprecated public abstract class LocalPkgInfo extends java.lang.Object implements java.lang.Comparable<LocalPkgInfo>
Deprecated.This is part of the old SDK manager framework. UseAndroidSdkHandler/RepoManagerand associated classes instead.Information about a locally installed package.Local package information is retrieved via the
LocalSdkobject. Clients should not need to create instances ofLocalPkgInfodirectly. Instead please use theLocalSdkmethods to parse and retrieve packages.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocalPkgInfo(LocalSdk localSdk, java.io.File localDir, java.util.Properties sourceProps)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(LocalPkgInfo o)Deprecated.Comparison is solely done based on theIPkgDesc.booleanequals(java.lang.Object obj)Deprecated.Computes object equality to this instance based on the underlyingIPkgDescbut also specific local properties such a local directory, update available and actual source properties.abstract IPkgDescgetDesc()Deprecated.Returns theIPkgDescdescribing this package.java.lang.StringgetListDescription()Deprecated.java.lang.StringgetLoadError()Deprecated.java.io.FilegetLocalDir()Deprecated.LocalSdkgetLocalSdk()Deprecated.java.util.PropertiesgetSourceProperties()Deprecated.inthashCode()Deprecated.Computes a hash code specific to this instance based on the underlyingIPkgDescbut also specific local properties such a local directory, and actual source properties.java.lang.StringtoString()Deprecated.String representation for debugging purposes.
-
-
-
Constructor Detail
-
LocalPkgInfo
protected LocalPkgInfo(@NonNull LocalSdk localSdk, @NonNull java.io.File localDir, @NonNull java.util.Properties sourceProps)Deprecated.
-
-
Method Detail
-
getLocalSdk
@NonNull public LocalSdk getLocalSdk()
Deprecated.
-
getLocalDir
@NonNull public java.io.File getLocalDir()
Deprecated.
-
getSourceProperties
@NonNull public java.util.Properties getSourceProperties()
Deprecated.
-
getLoadError
@Nullable public java.lang.String getLoadError()
Deprecated.
-
getDesc
@NonNull public abstract IPkgDesc getDesc()
Deprecated.Returns theIPkgDescdescribing this package.
-
compareTo
public int compareTo(@NonNull LocalPkgInfo o)Deprecated.Comparison is solely done based on theIPkgDesc.Other local attributes (local directory, source properties) are not used in the comparison. Consequently
compareTo(LocalPkgInfo)does not matchequals(Object)and thehashCode()properties.- Specified by:
compareToin interfacejava.lang.Comparable<LocalPkgInfo>
-
toString
public java.lang.String toString()
Deprecated.String representation for debugging purposes.- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.Computes a hash code specific to this instance based on the underlyingIPkgDescbut also specific local properties such a local directory, and actual source properties.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.Computes object equality to this instance based on the underlyingIPkgDescbut also specific local properties such a local directory, update available and actual source properties. This is different from the behavior ofcompareTo(LocalPkgInfo)which only uses theIPkgDescfor ordering.- Overrides:
equalsin classjava.lang.Object
-
getListDescription
@NonNull public java.lang.String getListDescription()
Deprecated.
-
-