Class 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. Use AndroidSdkHandler/RepoManager and associated classes instead.
    Information about a locally installed package.

    Local package information is retrieved via the LocalSdk object. Clients should not need to create instances of LocalPkgInfo directly. Instead please use the LocalSdk methods to parse and retrieve packages.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LocalPkgInfo​(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
      int compareTo​(LocalPkgInfo o)
      Deprecated.
      Comparison is solely done based on the IPkgDesc.
      boolean equals​(java.lang.Object obj)
      Deprecated.
      Computes object equality to this instance based on the underlying IPkgDesc but also specific local properties such a local directory, update available and actual source properties.
      abstract IPkgDesc getDesc()
      Deprecated.
      Returns the IPkgDesc describing this package.
      java.lang.String getListDescription()
      Deprecated.
       
      java.lang.String getLoadError()
      Deprecated.
       
      java.io.File getLocalDir()
      Deprecated.
       
      LocalSdk getLocalSdk()
      Deprecated.
       
      java.util.Properties getSourceProperties()
      Deprecated.
       
      int hashCode()
      Deprecated.
      Computes a hash code specific to this instance based on the underlying IPkgDesc but also specific local properties such a local directory, and actual source properties.
      java.lang.String toString()
      Deprecated.
      String representation for debugging purposes.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 the IPkgDesc describing this package.
      • toString

        public java.lang.String toString()
        Deprecated.
        String representation for debugging purposes.
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Computes a hash code specific to this instance based on the underlying IPkgDesc but also specific local properties such a local directory, and actual source properties.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Computes object equality to this instance based on the underlying IPkgDesc but also specific local properties such a local directory, update available and actual source properties. This is different from the behavior of compareTo(LocalPkgInfo) which only uses the IPkgDesc for ordering.
        Overrides:
        equals in class java.lang.Object
      • getListDescription

        @NonNull
        public java.lang.String getListDescription()
        Deprecated.