Record Class TestSummary
java.lang.Object
java.lang.Record
net.neoforged.testframework.summary.TestSummary
public record TestSummary(ResourceLocation frameworkId, boolean isGameTestRun, List<TestSummary.TestInfo> testInfos)
extends Record
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
The field for theframeworkId
record component.private final boolean
The field for theisGameTestRun
record component.private final List
<TestSummary.TestInfo> The field for thetestInfos
record component. -
Constructor Summary
ConstructorDescriptionTestSummary
(ResourceLocation frameworkId, boolean isGameTestRun, List<TestSummary.TestInfo> testInfos) Creates an instance of aTestSummary
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theframeworkId
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisGameTestRun
record component.Returns the value of thetestInfos
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
frameworkId
The field for theframeworkId
record component. -
isGameTestRun
private final boolean isGameTestRunThe field for theisGameTestRun
record component. -
testInfos
The field for thetestInfos
record component.
-
-
Constructor Details
-
TestSummary
public TestSummary(ResourceLocation frameworkId, boolean isGameTestRun, List<TestSummary.TestInfo> testInfos) Creates an instance of aTestSummary
record class.- Parameters:
frameworkId
- the value for theframeworkId
record componentisGameTestRun
- the value for theisGameTestRun
record componenttestInfos
- the value for thetestInfos
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
frameworkId
Returns the value of theframeworkId
record component.- Returns:
- the value of the
frameworkId
record component
-
isGameTestRun
public boolean isGameTestRun()Returns the value of theisGameTestRun
record component.- Returns:
- the value of the
isGameTestRun
record component
-
testInfos
Returns the value of thetestInfos
record component.- Returns:
- the value of the
testInfos
record component
-