Package io.guise.framework.platform
Interface BrandedProduct<BRAND extends java.lang.Enum<BRAND> & BrandedProduct.Brand>
-
- All Known Subinterfaces:
WebUserAgentProduct
- All Known Implementing Classes:
AbstractBrandedProduct
,DefaultWebUserAgentProduct
public interface BrandedProduct<BRAND extends java.lang.Enum<BRAND> & BrandedProduct.Brand>
The identification of a branded product, such as a user agent or a plugin, on the platform.- Author:
- Garret Wilson
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BrandedProduct.Brand
The individual brand of the product.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BRAND
getBrand()
boolean
isBrandLessThanVersionNumber(BRAND brand, double versionNumber)
Determines whether this product has the indicated brand and a version number less than the one indicated.boolean
isBrandVersionNumber(BRAND brand, double versionNumber)
Determines whether this product has the indicated brand and version number.
-
-
-
Method Detail
-
getBrand
BRAND getBrand()
- Returns:
- The brand of the product, or
null
if the brand is not known.
-
isBrandVersionNumber
boolean isBrandVersionNumber(BRAND brand, double versionNumber)
Determines whether this product has the indicated brand and version number.- Parameters:
brand
- The brand to check for.versionNumber
- The version number to check for.- Returns:
true
if this product has the indicated brand and version number.
-
isBrandLessThanVersionNumber
boolean isBrandLessThanVersionNumber(BRAND brand, double versionNumber)
Determines whether this product has the indicated brand and a version number less than the one indicated.- Parameters:
brand
- The brand to check for.versionNumber
- The version number to check for.- Returns:
true
if this product has the indicated brand and a version number less than the one indicated.
-
-