Record Class BattleTestRegistry.TestData
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.test.BattleTestRegistry.TestData
- Enclosing class:
BattleTestRegistry
public static record BattleTestRegistry.TestData(String id, boolean experimental, Supplier<CompletableFuture<TestResult>> testLogic)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTestData(String id, boolean experimental, Supplier<CompletableFuture<TestResult>> testLogic) Creates an instance of aTestDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexperimentalrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thetestLogicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestData
Creates an instance of aTestDatarecord class.- Parameters:
id- the value for theidrecord componentexperimental- the value for theexperimentalrecord componenttestLogic- the value for thetestLogicrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
experimental
public boolean experimental()Returns the value of theexperimentalrecord component.- Returns:
- the value of the
experimentalrecord component
-
testLogic
Returns the value of thetestLogicrecord component.- Returns:
- the value of the
testLogicrecord component
-