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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocationThe field for theframeworkIdrecord component.private final booleanThe field for theisGameTestRunrecord component.private final List<TestSummary.TestInfo> The field for thetestInfosrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTestSummary(ResourceLocation frameworkId, boolean isGameTestRun, List<TestSummary.TestInfo> testInfos) Creates an instance of aTestSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theframeworkIdrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisGameTestRunrecord component.Returns the value of thetestInfosrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
frameworkId
The field for theframeworkIdrecord component. -
isGameTestRun
private final boolean isGameTestRunThe field for theisGameTestRunrecord component. -
testInfos
The field for thetestInfosrecord component.
-
-
Constructor Details
-
TestSummary
public TestSummary(ResourceLocation frameworkId, boolean isGameTestRun, List<TestSummary.TestInfo> testInfos) Creates an instance of aTestSummaryrecord class.- Parameters:
frameworkId- the value for theframeworkIdrecord componentisGameTestRun- the value for theisGameTestRunrecord componenttestInfos- the value for thetestInfosrecord 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 theframeworkIdrecord component.- Returns:
- the value of the
frameworkIdrecord component
-
isGameTestRun
public boolean isGameTestRun()Returns the value of theisGameTestRunrecord component.- Returns:
- the value of the
isGameTestRunrecord component
-
testInfos
Returns the value of thetestInfosrecord component.- Returns:
- the value of the
testInfosrecord component
-