Record Class SokletServletPrintWriterEvent.CharAppended
java.lang.Object
java.lang.Record
com.soklet.servlet.javax.SokletServletPrintWriterEvent.CharAppended
- All Implemented Interfaces:
SokletServletPrintWriterEvent
- Enclosing interface:
SokletServletPrintWriterEvent
public static record SokletServletPrintWriterEvent.CharAppended(char ch)
extends Record
implements SokletServletPrintWriterEvent
Event emitted when a
char 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharch()Returns the value of thechrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CharAppended
Creates an instance of aCharAppendedrecord class.- Parameters:
ch- the value for thechrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
ch
Returns the value of thechrecord component.- Returns:
- the value of the
chrecord component
-