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
ConstructorsConstructorDescriptionFrameOutput(@UnmodifiableView Map<ErrorSource.Location, Integer> totalErrors, @UnmodifiableView Map<ErrorSource.Location, Integer> skippedErrors, @UnmodifiableView Set<ErrorSource.Location> newTimeouts, Frame.FrameLimit frameLimits) Creates an instance of aFrameOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theframeLimitsrecord component.final inthashCode()Returns a hash code value for this object.@UnmodifiableView Set<ErrorSource.Location> Returns the value of thenewTimeoutsrecord component.@UnmodifiableView Map<ErrorSource.Location, Integer> Returns the value of theskippedErrorsrecord component.final StringtoString()Returns a string representation of this record class.@UnmodifiableView Map<ErrorSource.Location, Integer> Returns the value of thetotalErrorsrecord 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 aFrameOutputrecord class.- Parameters:
totalErrors- the value for thetotalErrorsrecord componentskippedErrors- the value for theskippedErrorsrecord componentnewTimeouts- the value for thenewTimeoutsrecord componentframeLimits- the value for theframeLimitsrecord 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 thetotalErrorsrecord component.- Returns:
- the value of the
totalErrorsrecord component
-
skippedErrors
Returns the value of theskippedErrorsrecord component.- Returns:
- the value of the
skippedErrorsrecord component
-
newTimeouts
Returns the value of thenewTimeoutsrecord component.- Returns:
- the value of the
newTimeoutsrecord component
-
frameLimits
Returns the value of theframeLimitsrecord component.- Returns:
- the value of the
frameLimitsrecord component
-