Record Class TrainCZ
java.lang.Object
java.lang.Record
io.micronaut.data.tck.entities.TrainCZ
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theelektrickyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.doublerychlost()Returns the value of therychlostrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrainCZ
Creates an instance of aTrainCZrecord class.- Parameters:
rychlost- the value for therychlostrecord componentmodel- the value for themodelrecord componentelektricky- the value for theelektrickyrecord 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 thecomparemethod from their corresponding wrapper classes. -
rychlost
public double rychlost()Returns the value of therychlostrecord component.- Returns:
- the value of the
rychlostrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
elektricky
public boolean elektricky()Returns the value of theelektrickyrecord component.- Returns:
- the value of the
elektrickyrecord component
-