com.android.sdklib.repository.remote
Class RemotePkgInfo

java.lang.Object
  extended by com.android.sdklib.repository.remote.RemotePkgInfo
All Implemented Interfaces:
java.lang.Comparable<RemotePkgInfo>

public class RemotePkgInfo
extends java.lang.Object
implements java.lang.Comparable<RemotePkgInfo>

This class provides information on a remote package available for download via a remote SDK repository server.


Constructor Summary
RemotePkgInfo(IPkgDesc pkgDesc, com.android.sdklib.internal.repository.IDescription sourceUri)
           
 
Method Summary
 int compareTo(RemotePkgInfo o)
          Compares 2 packages by comparing their IPkgDesc.
 boolean equals(java.lang.Object obj)
          Compares 2 packages by comparing their IPkgDesc.
 IPkgDesc getDesc()
          Information on the package provided by the remote server.
 com.android.sdklib.internal.repository.IDescription getSourceUri()
          Returns the source identifier of the remote package.
 int hashCode()
          The remote package hash code is based on the underlying IPkgDesc.
 java.lang.String toString()
          String representation for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemotePkgInfo

public RemotePkgInfo(@NonNull
                     IPkgDesc pkgDesc,
                     @NonNull
                     com.android.sdklib.internal.repository.IDescription sourceUri)
Method Detail

getDesc

@NonNull
public IPkgDesc getDesc()
Information on the package provided by the remote server.


getSourceUri

@NonNull
public com.android.sdklib.internal.repository.IDescription getSourceUri()
Returns the source identifier of the remote package. This is an opaque object that can return its own description.


compareTo

public int compareTo(@NonNull
                     RemotePkgInfo o)
Compares 2 packages by comparing their IPkgDesc. The source is not used in the comparison.

Specified by:
compareTo in interface java.lang.Comparable<RemotePkgInfo>

hashCode

public int hashCode()
The remote package hash code is based on the underlying IPkgDesc. The source is not used in the hash code.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Compares 2 packages by comparing their IPkgDesc. The source is not used in the comparison.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
String representation for debugging purposes.

Overrides:
toString in class java.lang.Object