Record Class AcquisitionListing
java.lang.Object
java.lang.Record
ecmwf.common.ectrans.notification.AcquisitionListing
public record AcquisitionListing(String line, String body, String message, AcquisitionNotification notification)
extends Record
Backwards-compatible listing envelope; structured attribution is present only for selected profiles.
-
Constructor Summary
ConstructorsConstructorDescriptionAcquisitionListing(String line, String body, String message, AcquisitionNotification notification) Creates an instance of aAcquisitionListingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.static Stringformat(String line, String body, String message, AcquisitionNotification notification) final inthashCode()Returns a hash code value for this object.line()Returns the value of thelinerecord component.message()Returns the value of themessagerecord component.Returns the value of thenotificationrecord component.static AcquisitionListingfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AcquisitionListing
public AcquisitionListing(String line, String body, String message, AcquisitionNotification notification) Creates an instance of aAcquisitionListingrecord class.- Parameters:
line- the value for thelinerecord componentbody- the value for thebodyrecord componentmessage- the value for themessagerecord componentnotification- the value for thenotificationrecord component
-
-
Method Details
-
format
public static String format(String line, String body, String message, AcquisitionNotification notification) throws IOException - Throws:
IOException
-
parse
- Throws:
IOException
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
line
Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
notification
Returns the value of thenotificationrecord component.- Returns:
- the value of the
notificationrecord component
-