Package io.guise.framework.platform
Class DefaultProduct
java.lang.Object
io.guise.framework.platform.AbstractProduct
io.guise.framework.platform.DefaultProduct
- All Implemented Interfaces:
Product
The default implementation of a product with no brand.
- Author:
- Garret Wilson
-
Constructor Summary
ConstructorDescriptionDefaultProduct
(String id, String name, String version, double versionNumber) ID, name, and version constructor.DefaultProduct
(String id, String name, String version, double versionNumber, int[] versionNumbers) ID, name, and version constructor. -
Method Summary
Methods inherited from class io.guise.framework.platform.AbstractProduct
getID, getName, getVersion, getVersionNumber, getVersionNumbers
-
Constructor Details
-
DefaultProduct
ID, name, and version constructor.- Parameters:
id
- The identifying string of the product, ornull
if the ID is not known.name
- The canonical name of the product, ornull
if the name is not known.version
- The version string provided by the product, ornull
if there is no string version of the product.versionNumber
- The version number provided by the product, orDouble.NaN
if there is no version number of the product.- Throws:
NullPointerException
- if the given ID and/or name isnull
.
-
DefaultProduct
public DefaultProduct(String id, String name, String version, double versionNumber, int[] versionNumbers) ID, name, and version constructor.- Parameters:
id
- The identifying string of the product, ornull
if the ID is not known.name
- The canonical name of the product, ornull
if the name is not known.version
- The version string provided by the product, ornull
if there is no string version of the product.versionNumber
- The version number provided by the product, orDouble.NaN
if there is no version number of the product.versionNumbers
- The version number components provided by the product, ornull
if there are no version number components of the product.- Throws:
NullPointerException
- if the given ID and/or name isnull
.
-