com.android.repository.impl.meta
Class RemotePackageImpl
java.lang.Object
com.android.repository.impl.meta.RepoPackageImpl
com.android.repository.impl.meta.RemotePackageImpl
- All Implemented Interfaces:
- RemotePackage, RepoPackage, java.lang.Comparable<RepoPackage>
- Direct Known Subclasses:
- RemotePackage
public abstract class RemotePackageImpl
- extends RepoPackageImpl
- implements RemotePackage
An implementation of RemotePackage that can be created as part of a Repository
by JAXB.
| Methods inherited from class com.android.repository.impl.meta.RepoPackageImpl |
addDependency, compareTo, equals, getAllDependencies, getDependencies, getDisplayName, getLicense, getPath, getRevision, getTypeDetails, getUsesLicense, getVersion, hashCode, isObsolete, obsolete, setDependencies, setDisplayName, setLicense, setObsolete, setPath, setRevision, setTypeDetails, setUsesLicense, setVersion |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
RemotePackageImpl
public RemotePackageImpl()
setSource
public void setSource(@NonNull
RepositorySource source)
- Specified by:
setSource in interface RemotePackage
- Parameters:
source - The RepositorySource from which we got this package.
getArchive
@Nullable
public Archive getArchive()
- Specified by:
getArchive in interface RemotePackage
- Returns:
- The archive in this package compatible with the current hardware, OS, and JDK,
or
null if there is none.
getAllArchives
@NonNull
public java.util.List<Archive> getAllArchives()
- Convenience method to get all the
Archives included in this package.
getArchives
@NonNull
protected abstract RepoPackageImpl.Archives getArchives()
getSource
@NonNull
public RepositorySource getSource()
- Specified by:
getSource in interface RemotePackage
- Returns:
- The
RepositorySource from which we got this package.
getChannelRef
protected abstract RemotePackageImpl.ChannelRef getChannelRef()
getChannel
@NonNull
public Channel getChannel()
- Description copied from interface:
RemotePackage
- Gets the update channel (e.g. beta, stable) for this package. Channels are sorted in
lexicographic order, with the first (and default) being the most stable.
- Specified by:
getChannel in interface RemotePackage