@@ -31,6 +31,7 @@ public final class ProductData {
31
31
private final String publicProductName ;
32
32
private final String productName ;
33
33
private final String version ;
34
+ private final String minimalCompatibleLicenseKeyVersion ;
34
35
private final int sinceCopyrightYear ;
35
36
private final int toCopyrightYear ;
36
37
@@ -45,9 +46,25 @@ public final class ProductData {
45
46
*/
46
47
public ProductData (String publicProductName , String productName , String version , int sinceCopyrightYear ,
47
48
int toCopyrightYear ) {
49
+ this (publicProductName , productName , version , null , sinceCopyrightYear , toCopyrightYear );
50
+ }
51
+
52
+ /**
53
+ * Creates a new instance of product data.
54
+ *
55
+ * @param publicProductName is a product name
56
+ * @param productName is a technical name of the product
57
+ * @param version is a version of the product
58
+ * @param minimalCompatibleLicenseKeyVersion is a minimal compatible version of licensekey library
59
+ * @param sinceCopyrightYear is the first year of a product development
60
+ * @param toCopyrightYear is a last year of a product development
61
+ */
62
+ public ProductData (String publicProductName , String productName , String version ,
63
+ String minimalCompatibleLicenseKeyVersion , int sinceCopyrightYear , int toCopyrightYear ) {
48
64
this .publicProductName = publicProductName ;
49
65
this .productName = productName ;
50
66
this .version = version ;
67
+ this .minimalCompatibleLicenseKeyVersion = minimalCompatibleLicenseKeyVersion ;
51
68
this .sinceCopyrightYear = sinceCopyrightYear ;
52
69
this .toCopyrightYear = toCopyrightYear ;
53
70
}
@@ -97,6 +114,15 @@ public int getToCopyrightYear() {
97
114
return toCopyrightYear ;
98
115
}
99
116
117
+ /**
118
+ * Getter for the minimal compatible licensekey version.
119
+ *
120
+ * @return minimal compatible version of licensekey library.
121
+ */
122
+ public String getMinCompatibleLicensingModuleVersion () {
123
+ return minimalCompatibleLicenseKeyVersion ;
124
+ }
125
+
100
126
@ Override
101
127
public boolean equals (Object o ) {
102
128
if (this == o ) {
0 commit comments