Record Class FailureDetails.ExcessiveServersDetails
java.lang.Object
java.lang.Record
dev.demeng.sentinel.client.license.validation.FailureDetails.ExcessiveServersDetails
- Record Components:
maxServers- the maximum number of servers allowed by the license
- All Implemented Interfaces:
FailureDetails
- Enclosing interface:
- FailureDetails
public static record FailureDetails.ExcessiveServersDetails(int maxServers)
extends Record
implements FailureDetails
Details for a
ValidationResultType.EXCESSIVE_SERVERS failure.-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.demeng.sentinel.client.license.validation.FailureDetails
FailureDetails.BlacklistDetails, FailureDetails.ExcessiveIpsDetails, FailureDetails.ExcessiveServersDetails -
Constructor Summary
ConstructorsConstructorDescriptionExcessiveServersDetails(int maxServers) Creates an instance of aExcessiveServersDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxServersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExcessiveServersDetails
public ExcessiveServersDetails(int maxServers) Creates an instance of aExcessiveServersDetailsrecord class.- Parameters:
maxServers- the value for themaxServersrecord 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. All components in this record class are compared with '=='. -
maxServers
public int maxServers()Returns the value of themaxServersrecord component.- Returns:
- the value of the
maxServersrecord component
-