Package eu.ill.webx.model
Record Class SocketResponse
java.lang.Object
java.lang.Record
eu.ill.webx.model.SocketResponse
- Record Components:
data- the raw binary data
Encapsulates the binary data of a ZMQ REQ-REP socket response
-
Constructor Summary
ConstructorsConstructorDescriptionSocketResponse(byte[] data) Creates an instance of aSocketResponserecord class. -
Method Summary
-
Constructor Details
-
SocketResponse
public SocketResponse(byte[] data) Creates an instance of aSocketResponserecord class.- Parameters:
data- the value for thedatarecord component
-
-
Method Details
-
toString
Converts the data to string if not null -
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). -
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-