Record Class RateLimitInfo
java.lang.Object
java.lang.Record
org.mineskin.data.RateLimitInfo
-
Constructor Summary
ConstructorsConstructorDescriptionRateLimitInfo(NextRequest next, DelayInfo delay, LimitInfo limit) Creates an instance of aRateLimitInforecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.next()Returns the value of thenextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RateLimitInfo
Creates an instance of aRateLimitInforecord class.- Parameters:
next- the value for thenextrecord componentdelay- the value for thedelayrecord componentlimit- the value for thelimitrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-
delay
Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-