Record Class LimitInfo
java.lang.Object
java.lang.Record
org.mineskin.data.LimitInfo
-
Constructor Summary
ConstructorsConstructorDescriptionLimitInfo(int limit, int remaining) Creates an instance of aLimitInforecord 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.intlimit()Returns the value of thelimitrecord component.intReturns the value of theremainingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LimitInfo
public LimitInfo(int limit, int remaining) Creates an instance of aLimitInforecord class.- Parameters:
limit- the value for thelimitrecord componentremaining- the value for theremainingrecord 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 with thecomparemethod from their corresponding wrapper classes. -
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
remaining
public int remaining()Returns the value of theremainingrecord component.- Returns:
- the value of the
remainingrecord component
-