Record Class EncoderSink.WriteRecord
java.lang.Object
java.lang.Record
org.eclipse.jetty.compression.EncoderSink.WriteRecord
- Enclosing class:
EncoderSink
public static record EncoderSink.WriteRecord(boolean last, ByteBuffer output, Callback callback)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWriteRecord
(boolean last, ByteBuffer output, Callback callback) Creates an instance of aWriteRecord
record class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()
Returns the value of thecallback
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
last()
Returns the value of thelast
record component.output()
Returns the value of theoutput
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
WriteRecord
Creates an instance of aWriteRecord
record class.- Parameters:
last
- the value for thelast
record componentoutput
- the value for theoutput
record componentcallback
- the value for thecallback
record component
-
-
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 thecompare
method from their corresponding wrapper classes. -
last
public boolean last()Returns the value of thelast
record component.- Returns:
- the value of the
last
record component
-
output
Returns the value of theoutput
record component.- Returns:
- the value of the
output
record component
-
callback
Returns the value of thecallback
record component.- Returns:
- the value of the
callback
record component
-