Package io.guise.framework.platform
Class DefaultProduct
- java.lang.Object
-
- io.guise.framework.platform.AbstractProduct
-
- io.guise.framework.platform.DefaultProduct
-
- All Implemented Interfaces:
Product
public class DefaultProduct extends AbstractProduct
The default implementation of a product with no brand.- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description DefaultProduct(java.lang.String id, java.lang.String name, java.lang.String version, double versionNumber)
ID, name, and version constructor.DefaultProduct(java.lang.String id, java.lang.String name, java.lang.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 Detail
-
DefaultProduct
public DefaultProduct(java.lang.String id, java.lang.String name, java.lang.String version, double versionNumber)
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:
java.lang.NullPointerException
- if the given ID and/or name isnull
.
-
DefaultProduct
public DefaultProduct(java.lang.String id, java.lang.String name, java.lang.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:
java.lang.NullPointerException
- if the given ID and/or name isnull
.
-
-