Interface IndividualEquipmentMapper
public interface IndividualEquipmentMapper
Converts
IndividualEquipmentDTO to IndividualEquipment objects.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndividualEquipmentMapperAuto-generated implementation of this interface. -
Method Summary
Modifier and TypeMethodDescriptionCreates a properIndividualEquipmentobject from the given data-transfer object.Creates a properIndividualEquipmentobject from the given data-transfer object.default @NonNull Stringmap(@NonNull IndividualEquipmentType individualEquipmentType) Converts the givenIndividualEquipmentTypeto a String.default @NonNull IndividualEquipmentTypeConstructs a newIndividualEquipmentTypefrom the given String.toDto(IndividualEquipment equipment) Converts the givenIndividualEquipmentTypeto a data-transfer object.
-
Field Details
-
INSTANCE
Auto-generated implementation of this interface.
-
-
Method Details
-
fromDto
Creates a properIndividualEquipmentobject from the given data-transfer object.- Parameters:
dto- The data-transfer object to be converted.- Returns:
- The IndividualEquipment created from the DTO. Will not have an
RoomEquipment.idand not anIndividualEquipment.room.
-
fromDto
Creates a properIndividualEquipmentobject from the given data-transfer object.- Parameters:
dto- The data-transfer object to be converted.- Returns:
- The IndividualEquipment created from the DTO. Will not have an
RoomEquipment.idand not anIndividualEquipment.room.
-
toDto
Converts the givenIndividualEquipmentTypeto a data-transfer object.- Parameters:
equipment- The object to convert to a DTO.- Returns:
- The DTO created from the object.
-
map
@NonNull default @NonNull String map(@NonNull @NonNull IndividualEquipmentType individualEquipmentType) Converts the givenIndividualEquipmentTypeto a String.- Parameters:
individualEquipmentType- The IndividualEquipmentType which shall be serialised.- Returns:
- The
EquipmentType.nameof the given IndividualEquipment.
-
map
Constructs a newIndividualEquipmentTypefrom the given String.- Parameters:
string- Will be used as theEquipmentType.name.- Returns:
- The new IndividualEquipmentType. Will not have an
EquipmentType.id.
-