Record Class ValidationDetails

java.lang.Object
java.lang.Record
dev.demeng.sentinel.client.license.validation.ValidationDetails
Record Components:
expiration - the license expiration timestamp, or null if the license does not expire
serverCount - the current number of servers using this license
maxServers - the maximum allowed servers (-1 for unlimited)
ipCount - the current number of IP addresses using this license
maxIps - the maximum allowed IP addresses (-1 for unlimited)
tier - the license tier name
entitlements - the set of entitlement identifiers granted by this license (never null)

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 Details

    • ValidationDetails

      public ValidationDetails(@Nullable Instant expiration, int serverCount, int maxServers, int ipCount, int maxIps, String tier, Set<String> entitlements)
      Creates an instance of a ValidationDetails record class.
      Parameters:
      expiration - the value for the expiration record component
      serverCount - the value for the serverCount record component
      maxServers - the value for the maxServers record component
      ipCount - the value for the ipCount record component
      maxIps - the value for the maxIps record component
      tier - the value for the tier record component
      entitlements - the value for the entitlements record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • expiration

      public @Nullable Instant expiration()
      Returns the value of the expiration record component.
      Returns:
      the value of the expiration record component
    • serverCount

      public int serverCount()
      Returns the value of the serverCount record component.
      Returns:
      the value of the serverCount record component
    • maxServers

      public int maxServers()
      Returns the value of the maxServers record component.
      Returns:
      the value of the maxServers record component
    • ipCount

      public int ipCount()
      Returns the value of the ipCount record component.
      Returns:
      the value of the ipCount record component
    • maxIps

      public int maxIps()
      Returns the value of the maxIps record component.
      Returns:
      the value of the maxIps record component
    • tier

      public String tier()
      Returns the value of the tier record component.
      Returns:
      the value of the tier record component
    • entitlements

      public Set<String> entitlements()
      Returns the value of the entitlements record component.
      Returns:
      the value of the entitlements record component