Record Class Frame.FrameLimit
java.lang.Object
java.lang.Record
org.skriptlang.skript.log.runtime.Frame.FrameLimit
- Record Components:
totalLimit- total issues printed per framelineLimit- issues printed by one line per framelineTimeoutLimit- the limit at which a line will be put in timeout for exceeding.timeoutDuration- the duration a line will stay in timeout, in frames.
- Enclosing class:
Frame
public static record Frame.FrameLimit(int totalLimit, int lineLimit, int lineTimeoutLimit, int timeoutDuration)
extends Record
Store limits for the number of issues a frame can print per frame.
-
Constructor Summary
ConstructorsConstructorDescriptionFrameLimit(int totalLimit, int lineLimit, int lineTimeoutLimit, int timeoutDuration) Creates an instance of aFrameLimitrecord 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 thelineLimitrecord component.intReturns the value of thelineTimeoutLimitrecord component.intReturns the value of thetimeoutDurationrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalLimitrecord component.
-
Constructor Details
-
FrameLimit
public FrameLimit(int totalLimit, int lineLimit, int lineTimeoutLimit, int timeoutDuration) Creates an instance of aFrameLimitrecord class.- Parameters:
totalLimit- the value for thetotalLimitrecord componentlineLimit- the value for thelineLimitrecord componentlineTimeoutLimit- the value for thelineTimeoutLimitrecord componenttimeoutDuration- the value for thetimeoutDurationrecord 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. -
totalLimit
public int totalLimit()Returns the value of thetotalLimitrecord component.- Returns:
- the value of the
totalLimitrecord component
-
lineLimit
-
lineTimeoutLimit
public int lineTimeoutLimit()Returns the value of thelineTimeoutLimitrecord component.- Returns:
- the value of the
lineTimeoutLimitrecord component
-
timeoutDuration
public int timeoutDuration()Returns the value of thetimeoutDurationrecord component.- Returns:
- the value of the
timeoutDurationrecord component
-