com.android.sdklib.internal.repository.packages
Interface IFullRevisionProvider

All Known Implementing Classes:
BuildToolPackage, FullRevisionPackage, PlatformToolPackage, ToolPackage

public interface IFullRevisionProvider

Interface for packages that provide a FullRevision, which is a multi-part revision number (major.minor.micro) and an optional preview revision.

This interface is a tag. It indicates that Package.getRevision() returns a FullRevision instead of a limited MajorRevision.
The preview version number is available via Package.getRevision().


Method Summary
 boolean sameItemAs(Package pkg, FullRevision.PreviewComparison comparePreview)
          Returns whether the given package represents the same item as the current package.
 

Method Detail

sameItemAs

boolean sameItemAs(Package pkg,
                   FullRevision.PreviewComparison comparePreview)
Returns whether the given package represents the same item as the current package.

Two packages are considered the same if they represent the same thing, except for the revision number.

Parameters:
pkg - The package to compare
comparePreview - How to compare previews.
Returns:
true if the items are the same.