Record Class DeliveryDriverJson
java.lang.Object
java.lang.Record
io.micronaut.data.tck.jdbc.entities.geo.DeliveryDriverJson
@MappedEntity
public record DeliveryDriverJson(Long id, @NotBlank String name, @NotNull DeliveryDriverJson.Status status, @NotNull Point location)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeliveryDriverJson(Long id, @NotBlank String name, @NotNull DeliveryDriverJson.Status status, @NotNull Point location) Creates an instance of aDeliveryDriverJsonrecord class.DeliveryDriverJson(String name, DeliveryDriverJson.Status status, Point location) -
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.id()Returns the value of theidrecord component.@NotNull Pointlocation()Returns the value of thelocationrecord component.@NotBlank Stringname()Returns the value of thenamerecord component.@NotNull DeliveryDriverJson.Statusstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeliveryDriverJson
-
DeliveryDriverJson
public DeliveryDriverJson(@Id Long id, @NotBlank @NotBlank String name, @NotNull @NotNull DeliveryDriverJson.Status status, @NotNull @NotNull Point location) Creates an instance of aDeliveryDriverJsonrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentstatus- the value for thestatusrecord componentlocation- the value for thelocationrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
location
-