Record Class SokletServletPrintWriterEvent.CharSequenceAppended
java.lang.Object
java.lang.Record
com.soklet.servlet.javax.SokletServletPrintWriterEvent.CharSequenceAppended
- All Implemented Interfaces:
SokletServletPrintWriterEvent
- Enclosing interface:
SokletServletPrintWriterEvent
public static record SokletServletPrintWriterEvent.CharSequenceAppended(@Nonnull CharSequence charSequence, int start, int end)
extends Record
implements SokletServletPrintWriterEvent
Event emitted when a
CharSequence is appended 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
ConstructorsConstructorDescriptionCharSequenceAppended(CharSequence charSequence, int start, int end) Creates an instance of aCharSequenceAppendedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecharSequencerecord component.intend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CharSequenceAppended
Creates an instance of aCharSequenceAppendedrecord class.- Parameters:
charSequence- the value for thecharSequencerecord componentstart- the value for thestartrecord componentend- the value for theendrecord 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. -
charSequence
Returns the value of thecharSequencerecord component.- Returns:
- the value of the
charSequencerecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-