Record Class SokletServletPrintWriterEvent.CharsWritten
java.lang.Object
java.lang.Record
com.soklet.servlet.javax.SokletServletPrintWriterEvent.CharsWritten
- All Implemented Interfaces:
SokletServletPrintWriterEvent
- Enclosing interface:
SokletServletPrintWriterEvent
public static record SokletServletPrintWriterEvent.CharsWritten(@Nonnull char[] chars, int offset, int length)
extends Record
implements SokletServletPrintWriterEvent
Event emitted when a
char[] is written to the SokletServletPrintWriter.- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from interface SokletServletPrintWriterEvent
SokletServletPrintWriterEvent.CharAppended, SokletServletPrintWriterEvent.CharSequenceAppended, SokletServletPrintWriterEvent.CharsWritten, SokletServletPrintWriterEvent.CharWritten, SokletServletPrintWriterEvent.FormatPerformed, SokletServletPrintWriterEvent.NewlinePrinted, SokletServletPrintWriterEvent.PrintfPerformed, SokletServletPrintWriterEvent.StringWritten, SokletServletPrintWriterEvent.ValuePrinted, SokletServletPrintWriterEvent.ValueWithNewlinePrinted -
Constructor Summary
ConstructorsConstructorDescriptionCharsWritten(char[] chars, int offset, int length) Creates an instance of aCharsWrittenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchar[]chars()Returns the value of thecharsrecord 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
-
CharsWritten
Creates an instance of aCharsWrittenrecord class.- Parameters:
chars- the value for thecharsrecord componentoffset- the value for theoffsetrecord componentlength- the value for thelengthrecord 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 thecomparemethod from their corresponding wrapper classes. -
chars
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
length
Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-