com.android.sdklib.repository.local
Class UpdateResult

java.lang.Object
  extended by com.android.sdklib.repository.local.UpdateResult

public final class UpdateResult
extends java.lang.Object

Results from Update.computeUpdates(LocalPkgInfo[], com.google.common.collect.Multimap).


Constructor Summary
UpdateResult()
           
 
Method Summary
 java.util.Set<RemotePkgInfo> getNewPkgs()
          Returns the set of new remote packages that are not locally present and that the user could install.
 long getTimestampMs()
          Returns the timestamp (in System.currentTimeMillis() time) when this object was created.
 java.util.Set<LocalPkgInfo> getUpdatedPkgs()
          Returns the set of packages that have local updates available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateResult

public UpdateResult()
Method Detail

getTimestampMs

public long getTimestampMs()
Returns the timestamp (in System.currentTimeMillis() time) when this object was created.


getUpdatedPkgs

@NonNull
public java.util.Set<LocalPkgInfo> getUpdatedPkgs()
Returns the set of packages that have local updates available. Use LocalPkgInfo.getUpdate() to retrieve the computed updated candidate.

Returns:
A non-null, possibly empty list of update candidates.

getNewPkgs

@NonNull
public java.util.Set<RemotePkgInfo> getNewPkgs()
Returns the set of new remote packages that are not locally present and that the user could install.

Returns:
A non-null, possibly empty list of new install candidates.