Record Class ValidationDetails
java.lang.Object
java.lang.Record
dev.demeng.sentinel.client.license.validation.ValidationDetails
- Record Components:
expiration- the license expiration timestamp, ornullif the license does not expireserverCount- the current number of servers using this licensemaxServers- the maximum allowed servers (-1for unlimited)ipCount- the current number of IP addresses using this licensemaxIps- the maximum allowed IP addresses (-1for unlimited)tier- the license tier nameentitlements- the set of entitlement identifiers granted by this license (nevernull)
public record ValidationDetails(@Nullable Instant expiration, int serverCount, int maxServers, int ipCount, int maxIps, String tier, Set<String> entitlements)
extends Record
Details of a successfully validated license.
-
Constructor Summary
ConstructorsConstructorDescriptionValidationDetails(@Nullable Instant expiration, int serverCount, int maxServers, int ipCount, int maxIps, String tier, Set<String> entitlements) Creates an instance of aValidationDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentitlementsrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable InstantReturns the value of theexpirationrecord component.final inthashCode()Returns a hash code value for this object.intipCount()Returns the value of theipCountrecord component.intmaxIps()Returns the value of themaxIpsrecord component.intReturns the value of themaxServersrecord component.intReturns the value of theserverCountrecord component.tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationDetails
public ValidationDetails(@Nullable Instant expiration, int serverCount, int maxServers, int ipCount, int maxIps, String tier, Set<String> entitlements) Creates an instance of aValidationDetailsrecord class.- Parameters:
expiration- the value for theexpirationrecord componentserverCount- the value for theserverCountrecord componentmaxServers- the value for themaxServersrecord componentipCount- the value for theipCountrecord componentmaxIps- the value for themaxIpsrecord componenttier- the value for thetierrecord componententitlements- the value for theentitlementsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
expiration
Returns the value of theexpirationrecord component.- Returns:
- the value of the
expirationrecord component
-
serverCount
public int serverCount()Returns the value of theserverCountrecord component.- Returns:
- the value of the
serverCountrecord component
-
maxServers
public int maxServers()Returns the value of themaxServersrecord component.- Returns:
- the value of the
maxServersrecord component
-
ipCount
public int ipCount()Returns the value of theipCountrecord component.- Returns:
- the value of the
ipCountrecord component
-
maxIps
public int maxIps()Returns the value of themaxIpsrecord component.- Returns:
- the value of the
maxIpsrecord component
-
tier
Returns the value of thetierrecord component.- Returns:
- the value of the
tierrecord component
-
entitlements
Returns the value of theentitlementsrecord component.- Returns:
- the value of the
entitlementsrecord component
-