Record Class Frame.FrameOutput
java.lang.Object
java.lang.Record
org.skriptlang.skript.log.runtime.Frame.FrameOutput
- Record Components:
totalErrors
- A map of error locations to number of errors produced for this frame.skippedErrors
- A map of error locations to number of errors not printed for this frame.newTimeouts
- A set of error locations that were timed out this frame.frameLimits
- The limits this frame is using.
- Enclosing class:
Frame
public static record Frame.FrameOutput(@UnmodifiableView Map<ErrorSource.Location,Integer> totalErrors, @UnmodifiableView Map<ErrorSource.Location,Integer> skippedErrors, @UnmodifiableView Set<ErrorSource.Location> newTimeouts, Frame.FrameLimit frameLimits)
extends Record
Stores outputs of a frame.
-
Constructor Summary
ConstructorDescriptionFrameOutput
(@UnmodifiableView Map<ErrorSource.Location, Integer> totalErrors, @UnmodifiableView Map<ErrorSource.Location, Integer> skippedErrors, @UnmodifiableView Set<ErrorSource.Location> newTimeouts, Frame.FrameLimit frameLimits) Creates an instance of aFrameOutput
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theframeLimits
record component.final int
hashCode()
Returns a hash code value for this object.@UnmodifiableView Set
<ErrorSource.Location> Returns the value of thenewTimeouts
record component.@UnmodifiableView Map
<ErrorSource.Location, Integer> Returns the value of theskippedErrors
record component.final String
toString()
Returns a string representation of this record class.@UnmodifiableView Map
<ErrorSource.Location, Integer> Returns the value of thetotalErrors
record component.
-
Constructor Details
-
FrameOutput
public FrameOutput(@UnmodifiableView Map<ErrorSource.Location, Integer> totalErrors, @UnmodifiableView Map<ErrorSource.Location, Integer> skippedErrors, @UnmodifiableView Set<ErrorSource.Location> newTimeouts, Frame.FrameLimit frameLimits) Creates an instance of aFrameOutput
record class.- Parameters:
totalErrors
- the value for thetotalErrors
record componentskippedErrors
- the value for theskippedErrors
record componentnewTimeouts
- the value for thenewTimeouts
record componentframeLimits
- the value for theframeLimits
record 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 withObjects::equals(Object,Object)
. -
totalErrors
Returns the value of thetotalErrors
record component.- Returns:
- the value of the
totalErrors
record component
-
skippedErrors
Returns the value of theskippedErrors
record component.- Returns:
- the value of the
skippedErrors
record component
-
newTimeouts
Returns the value of thenewTimeouts
record component.- Returns:
- the value of the
newTimeouts
record component
-
frameLimits
Returns the value of theframeLimits
record component.- Returns:
- the value of the
frameLimits
record component
-