Record Class EquipmentTypeDTO
java.lang.Object
java.lang.Record
de.gustavblass.fsu.fmi.roombooking.dto.EquipmentTypeDTO
- Record Components:
name- TheEquipmentType.name.type-The value of the table that determines the concrete subclass of
EquipmentType. Existing ones:
public record EquipmentTypeDTO(@NotNull @NotBlank String name, @NotNull @NotBlank String type)
extends Record
Data-transfer object that represents an
EquipmentType.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEquipmentTypeDTO(@NotNull @NotBlank String name, @NotNull @NotBlank String type) Creates an instance of aEquipmentTypeDTOrecord 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.@NotNull @NotBlank Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@NotNull @NotBlank Stringtype()Returns the value of thetyperecord component.
-
Field Details
-
name
-
type
-
-
Constructor Details
-
EquipmentTypeDTO
-
-
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). -
name
-
type
-