public class DependenciesCalculatorV1 extends Object implements DependenciesCalculator
Constructor and Description |
---|
DependenciesCalculatorV1(InstallPackageService installService) |
Modifier and Type | Method and Description |
---|---|
void |
addInstalledPackage(PackageInfo packageInfo) |
void |
addInstalledPackage(PackageInfo[] packages) |
void |
addPackageToInstall(Collection<PackageInfo> packages) |
void |
addPackageToInstall(PackageInfo packageInfo) |
void |
calculate() |
List<PackageInfo> |
getConflictPackages() |
List<PackageInfo> |
getRequiredPackages() |
Dependencies |
getUnresolvedDependencies() |
public DependenciesCalculatorV1(InstallPackageService installService)
public void addPackageToInstall(PackageInfo packageInfo)
addPackageToInstall
in interface DependenciesCalculator
public void addPackageToInstall(Collection<PackageInfo> packages)
addPackageToInstall
in interface DependenciesCalculator
public void addInstalledPackage(PackageInfo packageInfo)
addInstalledPackage
in interface DependenciesCalculator
public void addInstalledPackage(PackageInfo[] packages)
addInstalledPackage
in interface DependenciesCalculator
public void calculate()
calculate
in interface DependenciesCalculator
public List<PackageInfo> getRequiredPackages()
getRequiredPackages
in interface DependenciesCalculator
public List<PackageInfo> getConflictPackages()
getConflictPackages
in interface DependenciesCalculator
public Dependencies getUnresolvedDependencies()
getUnresolvedDependencies
in interface DependenciesCalculator