public class DotNetPackagesManager extends ManagerBase
logger| Constructor and Description |
|---|
DotNetPackagesManager(PrintStream logger,
String jsonPackages)
The packages manager constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String packageName)
Determines if the manager currently have the target package
|
String |
getPackagesHash()
Returns a SHA-1 string that represents the JSON representation of the packages map
|
Map<String,String> |
getPackagesMap()
Returns all the stored packages
|
String |
normalizedJson()
Returns the map of packages as a JSON string
|
void |
putPackage(String packageName,
String version)
Puts a package inside the internal map
|
log, prettyLogpublic DotNetPackagesManager(PrintStream logger, String jsonPackages)
logger - jsonPackages - public boolean contains(String packageName)
packageName - public void putPackage(String packageName, String version)
packageName - version - public String normalizedJson()
public String getPackagesHash() throws NoSuchAlgorithmException, UnsupportedEncodingException
NoSuchAlgorithmExceptionUnsupportedEncodingExceptionCopyright © 2016–2017. All rights reserved.