Class 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.
    • 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, 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:
        java.lang.NullPointerException - if the given ID and/or name is null.
      • 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, 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:
        java.lang.NullPointerException - if the given ID and/or name is null.