Record Class EventoController.EventoDTO
java.lang.Object
java.lang.Record
com.modulink.Controller.UserModules.GDE.EventoController.EventoDTO
- Enclosing class:
EventoController
public static record EventoController.EventoDTO(int id_evento, String nome, String luogo, LocalDateTime data_ora_inizio, LocalDateTime data_fine)
extends Record
Data Transfer Object per la rappresentazione sintetica di un evento nel calendario.
- Since:
- 1.2.0
- Version:
- 2.1.5
- Author:
- Modulink Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LocalDateTimeThe field for thedata_finerecord component.private final LocalDateTimeThe field for thedata_ora_iniziorecord component.private final intThe field for theid_eventorecord component.private final StringThe field for theluogorecord component.private final StringThe field for thenomerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEventoDTO(int id_evento, String nome, String luogo, LocalDateTime data_ora_inizio, LocalDateTime data_fine) Creates an instance of aEventoDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedata_finerecord component.Returns the value of thedata_ora_iniziorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theid_eventorecord component.luogo()Returns the value of theluogorecord component.nome()Returns the value of thenomerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id_evento
private final int id_eventoThe field for theid_eventorecord component. -
nome
The field for thenomerecord component. -
luogo
The field for theluogorecord component. -
data_ora_inizio
The field for thedata_ora_iniziorecord component. -
data_fine
The field for thedata_finerecord component.
-
-
Constructor Details
-
EventoDTO
public EventoDTO(int id_evento, String nome, String luogo, LocalDateTime data_ora_inizio, LocalDateTime data_fine) Creates an instance of aEventoDTOrecord class.- Parameters:
id_evento- the value for theid_eventorecord componentnome- the value for thenomerecord componentluogo- the value for theluogorecord componentdata_ora_inizio- the value for thedata_ora_iniziorecord componentdata_fine- the value for thedata_finerecord 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. -
id_evento
public int id_evento()Returns the value of theid_eventorecord component.- Returns:
- the value of the
id_eventorecord component
-
nome
Returns the value of thenomerecord component.- Returns:
- the value of the
nomerecord component
-
luogo
Returns the value of theluogorecord component.- Returns:
- the value of the
luogorecord component
-
data_ora_inizio
Returns the value of thedata_ora_iniziorecord component.- Returns:
- the value of the
data_ora_iniziorecord component
-
data_fine
Returns the value of thedata_finerecord component.- Returns:
- the value of the
data_finerecord component
-