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 Details

    • DefaultProduct

      public DefaultProduct(String id, String name, String version, double versionNumber)
      ID, name, and version constructor.
      Parameters:
      id - The identifying string of the product, or null if the ID is not known.
      name - The canonical name of the product, or null if the name is not known.
      version - The version string provided by the product, or null if there is no string version of the product.
      versionNumber - The version number provided by the product, or Double.NaN if there is no version number of the product.
      Throws:
      NullPointerException - if the given ID and/or name is null.
    • 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, or null if the ID is not known.
      name - The canonical name of the product, or null if the name is not known.
      version - The version string provided by the product, or null if there is no string version of the product.
      versionNumber - The version number provided by the product, or Double.NaN if there is no version number of the product.
      versionNumbers - The version number components provided by the product, or null if there are no version number components of the product.
      Throws:
      NullPointerException - if the given ID and/or name is null.