public final class ProductInfo
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ProductInfo(java.lang.String productName, java.lang.String productVersion)
Constructor
|
ProductInfo(java.lang.String productName, java.lang.String productVersion, java.util.Set<java.lang.String> supportedImportVersions)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getProductName()
Returns the name of the product
|
java.lang.String |
getProductVersion()
Returns the version of the product
|
java.util.Set<java.lang.String> |
getSupportedImportVersions()
Returns the supported import versions
|
int |
hashCode() |
boolean |
isVersionSupportedForImport(java.lang.String productVersion)
Returns true if the given version of the product is supported for import
|
public ProductInfo(java.lang.String productName, java.lang.String productVersion, java.util.Set<java.lang.String> supportedImportVersions)
productName
- the name of the product that is using the configuration frameworkproductVersion
- the version of the product.supportedImportVersions
- versions of the product that can be imported. A null value indicates all versions are supportedpublic ProductInfo(java.lang.String productName, java.lang.String productVersion)
productName
- the name of the product that is using the configuration frameworkproductVersion
- the version of the product.public java.lang.String getProductName()
public java.lang.String getProductVersion()
public java.util.Set<java.lang.String> getSupportedImportVersions()
public boolean isVersionSupportedForImport(java.lang.String productVersion)
productVersion
-public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object