Record Class WebSocketNextJsonRPCService.TextMessage
java.lang.Object
java.lang.Record
io.quarkus.websockets.next.runtime.devui.WebSocketNextJsonRPCService.TextMessage
- Enclosing class:
WebSocketNextJsonRPCService
static record WebSocketNextJsonRPCService.TextMessage(boolean incoming, String text, LocalDateTime timestamp)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextMessage(boolean incoming, String text, LocalDateTime timestamp) Creates an instance of aTextMessagerecord 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.booleanincoming()Returns the value of theincomingrecord component.text()Returns the value of thetextrecord component.Returns the value of thetimestamprecord component.(package private) io.vertx.core.json.JsonObjectfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextMessage
TextMessage(boolean incoming, String text, LocalDateTime timestamp) Creates an instance of aTextMessagerecord class.- Parameters:
incoming- the value for theincomingrecord componenttext- the value for thetextrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
toJsonObject
io.vertx.core.json.JsonObject toJsonObject() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
incoming
public boolean incoming()Returns the value of theincomingrecord component.- Returns:
- the value of the
incomingrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-