Record Class AvisoDiscovery.Response
java.lang.Object
java.lang.Record
ecmwf.common.ectrans.notification.AvisoDiscovery.Response
- All Implemented Interfaces:
Closeable, AutoCloseable
- Enclosing class:
AvisoDiscovery
public static record AvisoDiscovery.Response(int status, InputStream input, Closeable connection)
extends Record
implements Closeable
-
Constructor Summary
ConstructorsConstructorDescriptionResponse(int status, InputStream input, Closeable connection) Creates an instance of aResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Response
Creates an instance of aResponserecord class.- Parameters:
status- the value for thestatusrecord componentinput- the value for theinputrecord componentconnection- the value for theconnectionrecord component
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-