Class HL7v2ReadResponse


  • public class HL7v2ReadResponse
    extends java.lang.Object
    HL7v2ReadResponse represents the response format for a HL7v2 read request, used as the output type of HL7v2IO.HL7v2Read.
    • Constructor Detail

      • HL7v2ReadResponse

        public HL7v2ReadResponse​(@Nullable
                                 java.lang.String metadata,
                                 HL7v2Message hl7v2Message)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • of

        public static HL7v2ReadResponse of​(java.lang.String metadata,
                                           HL7v2Message hl7v2Message)
        From metadata and hl7v2Message to HL7v2ReadResponse.
        Parameters:
        metadata - the metadata
        hl7v2Message - the hl7v2 message
        Returns:
        the hl7v2 read response
      • getMetadata

        @Nullable
        public java.lang.String getMetadata()
        Gets metadata.
        Returns:
        the metadata
      • getHL7v2Message

        public HL7v2Message getHL7v2Message()
        Gets hl7v2Message.
        Returns:
        the hl7v2Message
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object