Record Class SokletServletPrintWriterEvent.StringWritten
java.lang.Object
java.lang.Record
com.soklet.servlet.javax.SokletServletPrintWriterEvent.StringWritten
- All Implemented Interfaces:
SokletServletPrintWriterEvent
- Enclosing interface:
SokletServletPrintWriterEvent
public static record SokletServletPrintWriterEvent.StringWritten(@Nonnull String string, int offset, int length)
extends Record
implements SokletServletPrintWriterEvent
Event emitted when a
String 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
ConstructorsConstructorDescriptionStringWritten(String string, int offset, int length) Creates an instance of aStringWrittenrecord 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.intlength()Returns the value of thelengthrecord component.intoffset()Returns the value of theoffsetrecord component.string()Returns the value of thestringrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StringWritten
Creates an instance of aStringWrittenrecord class.- Parameters:
string- the value for thestringrecord 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. -
string
-
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
-