Record Class Header
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fi.fingrid.client.model.Header
-
Constructor Summary
ConstructorsConstructorDescriptionHeader(String identification, Party physicalSenderParty, Party juridicalSenderParty, Party physicalReceiverParty, Party juridicalReceiverParty, String processRole, ZonedDateTime creation, String documentType, String organisationUser) Creates an instance of aHeaderrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreation()Returns the value of thecreationrecord component.Returns the value of thedocumentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentificationrecord component.Returns the value of thejuridicalReceiverPartyrecord component.Returns the value of thejuridicalSenderPartyrecord component.Returns the value of theorganisationUserrecord component.Returns the value of thephysicalReceiverPartyrecord component.Returns the value of thephysicalSenderPartyrecord component.Returns the value of theprocessRolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Header
public Header(String identification, Party physicalSenderParty, Party juridicalSenderParty, Party physicalReceiverParty, Party juridicalReceiverParty, String processRole, ZonedDateTime creation, String documentType, String organisationUser) Creates an instance of aHeaderrecord class.- Parameters:
identification- the value for theidentificationrecord componentphysicalSenderParty- the value for thephysicalSenderPartyrecord componentjuridicalSenderParty- the value for thejuridicalSenderPartyrecord componentphysicalReceiverParty- the value for thephysicalReceiverPartyrecord componentjuridicalReceiverParty- the value for thejuridicalReceiverPartyrecord componentprocessRole- the value for theprocessRolerecord componentcreation- the value for thecreationrecord componentdocumentType- the value for thedocumentTyperecord componentorganisationUser- the value for theorganisationUserrecord component
-
-
Method Details
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
identification
Returns the value of theidentificationrecord component.- Returns:
- the value of the
identificationrecord component
-
physicalSenderParty
Returns the value of thephysicalSenderPartyrecord component.- Returns:
- the value of the
physicalSenderPartyrecord component
-
juridicalSenderParty
Returns the value of thejuridicalSenderPartyrecord component.- Returns:
- the value of the
juridicalSenderPartyrecord component
-
physicalReceiverParty
Returns the value of thephysicalReceiverPartyrecord component.- Returns:
- the value of the
physicalReceiverPartyrecord component
-
juridicalReceiverParty
Returns the value of thejuridicalReceiverPartyrecord component.- Returns:
- the value of the
juridicalReceiverPartyrecord component
-
processRole
Returns the value of theprocessRolerecord component.- Returns:
- the value of the
processRolerecord component
-
creation
Returns the value of thecreationrecord component.- Returns:
- the value of the
creationrecord component
-
documentType
Returns the value of thedocumentTyperecord component.- Returns:
- the value of the
documentTyperecord component
-
organisationUser
Returns the value of theorganisationUserrecord component.- Returns:
- the value of the
organisationUserrecord component
-