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 Details

    • id_evento

      private final int id_evento
      The field for the id_evento record component.
    • nome

      private final String nome
      The field for the nome record component.
    • luogo

      private final String luogo
      The field for the luogo record component.
    • data_ora_inizio

      private final LocalDateTime data_ora_inizio
      The field for the data_ora_inizio record component.
    • data_fine

      private final LocalDateTime data_fine
      The field for the data_fine record component.
  • Constructor Details

    • EventoDTO

      public EventoDTO(int id_evento, String nome, String luogo, LocalDateTime data_ora_inizio, LocalDateTime data_fine)
      Creates an instance of a EventoDTO record class.
      Parameters:
      id_evento - the value for the id_evento record component
      nome - the value for the nome record component
      luogo - the value for the luogo record component
      data_ora_inizio - the value for the data_ora_inizio record component
      data_fine - the value for the data_fine record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id_evento

      public int id_evento()
      Returns the value of the id_evento record component.
      Returns:
      the value of the id_evento record component
    • nome

      public String nome()
      Returns the value of the nome record component.
      Returns:
      the value of the nome record component
    • luogo

      public String luogo()
      Returns the value of the luogo record component.
      Returns:
      the value of the luogo record component
    • data_ora_inizio

      public LocalDateTime data_ora_inizio()
      Returns the value of the data_ora_inizio record component.
      Returns:
      the value of the data_ora_inizio record component
    • data_fine

      public LocalDateTime data_fine()
      Returns the value of the data_fine record component.
      Returns:
      the value of the data_fine record component