Record Class MessageHandlerResult
java.lang.Object
java.lang.Record
org.apache.tomcat.websocket.MessageHandlerResult
public record MessageHandlerResult(MessageHandler handler, MessageHandlerResultType type)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMessageHandlerResult
(MessageHandler handler, MessageHandlerResultType type) Creates an instance of aMessageHandlerResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.handler()
Returns the value of thehandler
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
MessageHandlerResult
Creates an instance of aMessageHandlerResult
record class.- Parameters:
handler
- the value for thehandler
record componenttype
- the value for thetype
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
handler
Returns the value of thehandler
record component.- Returns:
- the value of the
handler
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-