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
ConstructorsModifierConstructorDescriptionprivate
EngineUpdaterSchemaTestObjectV1
(int number, String text) Creates an instance of aEngineUpdaterSchemaTestObjectV1
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
number()
Returns the value of thenumber
record component.text()
Returns the value of thetext
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
number
private final int numberThe field for thenumber
record component. -
text
The field for thetext
record component.
-
-
Constructor Details
-
EngineUpdaterSchemaTestObjectV1
Creates an instance of aEngineUpdaterSchemaTestObjectV1
record class.- Parameters:
number
- the value for thenumber
record componenttext
- the value for thetext
record 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 thenumber
record component.- Returns:
- the value of the
number
record component
-
text
Returns the value of thetext
record component.- Returns:
- the value of the
text
record component
-