Record Class EventoController.UpdateEventoRequest
java.lang.Object
java.lang.Record
com.modulink.Controller.UserModules.GDE.EventoController.UpdateEventoRequest
- Enclosing class:
EventoController
public static record EventoController.UpdateEventoRequest(int id, String nome, String luogo, LocalDateTime inizio, LocalDateTime fine, List<Integer> partecipanti)
extends Record
Oggetto di richiesta per l'aggiornamento di un evento.
- Since:
- 1.2.0
- Version:
- 2.1.5
- Author:
- Modulink Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LocalDateTimeThe field for thefinerecord component.private final intThe field for theidrecord component.private final LocalDateTimeThe field for theiniziorecord component.private final StringThe field for theluogorecord component.private final StringThe field for thenomerecord component.The field for thepartecipantirecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUpdateEventoRequest(int id, String nome, String luogo, LocalDateTime inizio, LocalDateTime fine, List<Integer> partecipanti) Creates an instance of aUpdateEventoRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fine()Returns the value of thefinerecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.inizio()Returns the value of theiniziorecord component.luogo()Returns the value of theluogorecord component.nome()Returns the value of thenomerecord component.Returns the value of thepartecipantirecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
private final int idThe field for theidrecord component. -
nome
The field for thenomerecord component. -
luogo
The field for theluogorecord component. -
inizio
The field for theiniziorecord component. -
fine
The field for thefinerecord component. -
partecipanti
-
-
Constructor Details
-
UpdateEventoRequest
public UpdateEventoRequest(int id, String nome, String luogo, LocalDateTime inizio, LocalDateTime fine, List<Integer> partecipanti) Creates an instance of aUpdateEventoRequestrecord class.- Parameters:
id- the value for theidrecord componentnome- the value for thenomerecord componentluogo- the value for theluogorecord componentinizio- the value for theiniziorecord componentfine- the value for thefinerecord componentpartecipanti- the value for thepartecipantirecord 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
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord 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
-
inizio
Returns the value of theiniziorecord component.- Returns:
- the value of the
iniziorecord component
-
fine
Returns the value of thefinerecord component.- Returns:
- the value of the
finerecord component
-
partecipanti
-