Record Class ModelEventDataBlock
java.lang.Object
java.lang.Record
io.fluxzero.common.api.modeling.ModelEventDataBlock
Byte-range view containing one persisted model-event block.
A range can reference the websocket receive buffer directly. This avoids copying every compressed block before the reconstruction decoder immediately expands it.
-
Constructor Summary
ConstructorsConstructorDescriptionModelEventDataBlock(byte[] data) ModelEventDataBlock(byte[] data, int offset, int length) Creates an instance of aModelEventDataBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.intoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelEventDataBlock
public ModelEventDataBlock(byte[] data, int offset, int length) Creates an instance of aModelEventDataBlockrecord class.- Parameters:
data- the value for thedatarecord componentoffset- the value for theoffsetrecord componentlength- the value for thelengthrecord component
-
ModelEventDataBlock
public ModelEventDataBlock(byte[] data)
-
-
Method Details
-
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. -
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-