Record Class PublicationUpdateRequest

java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.pg.request.PublicationUpdateRequest

public record PublicationUpdateRequest(String publication_title, Date publication_date, String publication_doi, String pubmed_id, CollaborationTeamRequest collaboration_team) extends Record
  • Constructor Details

    • PublicationUpdateRequest

      public PublicationUpdateRequest(String publication_title, Date publication_date, String publication_doi, String pubmed_id)
    • PublicationUpdateRequest

      public PublicationUpdateRequest(String publication_title, Date publication_date, String publication_doi, String pubmed_id, CollaborationTeamRequest collaboration_team)
      Creates an instance of a PublicationUpdateRequest record class.
      Parameters:
      publication_title - the value for the publication_title record component
      publication_date - the value for the publication_date record component
      publication_doi - the value for the publication_doi record component
      pubmed_id - the value for the pubmed_id record component
      collaboration_team - the value for the collaboration_team 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • publication_title

      public String publication_title()
      Returns the value of the publication_title record component.
      Returns:
      the value of the publication_title record component
    • publication_date

      public Date publication_date()
      Returns the value of the publication_date record component.
      Returns:
      the value of the publication_date record component
    • publication_doi

      public String publication_doi()
      Returns the value of the publication_doi record component.
      Returns:
      the value of the publication_doi record component
    • pubmed_id

      public String pubmed_id()
      Returns the value of the pubmed_id record component.
      Returns:
      the value of the pubmed_id record component
    • collaboration_team

      public CollaborationTeamRequest collaboration_team()
      Returns the value of the collaboration_team record component.
      Returns:
      the value of the collaboration_team record component