Package io.micronaut.data.tck.entities
Record Class TrainCZProjection
java.lang.Object
java.lang.Record
io.micronaut.data.tck.entities.TrainCZProjection
-
Constructor Summary
ConstructorsConstructorDescriptionTrainCZProjection(double rychlost, String model, boolean elektricky) Creates an instance of aTrainCZProjectionrecord class. -
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
-
TrainCZProjection
Creates an instance of aTrainCZProjectionrecord class.- Parameters:
rychlost- the value for therychlostrecord componentmodel- the value for themodelrecord componentelektricky- the value for theelektrickyrecord 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 '=='. -
rychlost
@Select("speed") 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
@Select("electric") public boolean elektricky()Returns the value of theelektrickyrecord component.- Returns:
- the value of the
elektrickyrecord component
-