Record Class ExtensionHeader
java.lang.Object
java.lang.Record
org.odenix.mxpack.core.ExtensionHeader
- Record Components:
length- the length, in bytes, of the extension value's payloadtype- the numeric identifier of the extension value's type
The header of an extension value.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteThe numeric identifier of extension typetimestamp. -
Constructor Summary
ConstructorsConstructorDescriptionExtensionHeader(int length, byte type) Creates an instance of aExtensionHeaderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns whether this extension value has typetimestamp.intlength()Returns the value of thelengthrecord component.final StringtoString()Returns a string representation of this record class.bytetype()Returns the value of thetyperecord component.
-
Field Details
-
TIMESTAMP_TYPE
public static final byte TIMESTAMP_TYPEThe numeric identifier of extension typetimestamp.- See Also:
-
-
Constructor Details
-
ExtensionHeader
-
-
Method Details
-
isTimestamp
public boolean isTimestamp()Returns whether this extension value has typetimestamp.- Returns:
- whether this extension value has type
timestamp
-
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 with thecomparemethod from their corresponding wrapper classes. -
length
-
type
-