Package ch.rswk.meta.engine.test
Record Class EngineUpdaterSchemaTest.EngineUpdaterSchemaTestObjectV1
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.test.EngineUpdaterSchemaTest.EngineUpdaterSchemaTestObjectV1
- Enclosing class:
EngineUpdaterSchemaTest
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEngineUpdaterSchemaTestObjectV1(int number, String text) Creates an instance of aEngineUpdaterSchemaTestObjectV1record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnumber()Returns the value of thenumberrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
number
private final int numberThe field for thenumberrecord component. -
text
The field for thetextrecord component.
-
-
Constructor Details
-
EngineUpdaterSchemaTestObjectV1
Creates an instance of aEngineUpdaterSchemaTestObjectV1record class.- Parameters:
number- the value for thenumberrecord componenttext- the value for thetextrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 '=='. -
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-