public final class LicenseFeature extends Object
| Constructor and Description |
|---|
LicenseFeature(String name,
String code,
String featureType,
int maxConsumption,
int totalConsumptions,
ZonedDateTime expiryDate,
boolean allowOverages,
int maxOverages) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCode()
Unique code of the feature use for reference purposes.
|
ZonedDateTime |
getExpiryDate()
The expiration date of the feature (can be null)
|
String |
getFeatureType()
Type of the feature ("activation" or "consumption"), as explained in the class definition javadoc.
|
int |
getMaxConsumption()
Number of max consumptions.
|
int |
getMaxOverages()
Maximal overages of this feature (uses after consumptions have been used up).
|
String |
getName()
Name of the feature use for reference purposes.
|
int |
getTotalConsumptions()
Number of consumptions currently being used.
|
int |
hashCode() |
boolean |
isAllowOverages()
License feature settings if it allows overages (used in licences with type
LicenseType.CONSUMPTION) |
String |
toString() |
public LicenseFeature(String name, String code, String featureType, int maxConsumption, int totalConsumptions, ZonedDateTime expiryDate, boolean allowOverages, int maxOverages)
public String getName()
public String getCode()
public String getFeatureType()
public int getMaxConsumption()
public int getTotalConsumptions()
public ZonedDateTime getExpiryDate()
public boolean isAllowOverages()
LicenseType.CONSUMPTION)public int getMaxOverages()
LicenseType.CONSUMPTIONCopyright © 2023 Cense Data Inc.. All rights reserved.