Class BasicPlatformPackage
java.lang.Object
net.solarnetwork.node.service.support.BasicPlatformPackage
- All Implemented Interfaces:
PlatformPackageService.PlatformPackage
Basic immutable implementation of
PlatformPackageService.PlatformPackage.- Since:
- 1.68
- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionBasicPlatformPackage(String name, String version, boolean installed) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the package name.Get the package version.booleanFlag if this package is installed.
-
Constructor Details
-
BasicPlatformPackage
Constructor.- Parameters:
name- the package nameversion- the package versioninstalled- true if installed
-
-
Method Details
-
getName
Description copied from interface:PlatformPackageService.PlatformPackageGet the package name.- Specified by:
getNamein interfacePlatformPackageService.PlatformPackage- Returns:
- the name
-
getVersion
Description copied from interface:PlatformPackageService.PlatformPackageGet the package version.- Specified by:
getVersionin interfacePlatformPackageService.PlatformPackage- Returns:
- the version
-
isInstalled
public boolean isInstalled()Description copied from interface:PlatformPackageService.PlatformPackageFlag if this package is installed.- Specified by:
isInstalledin interfacePlatformPackageService.PlatformPackage- Returns:
- true if the package is installed
-