Record Class StatusResponseEvent
java.lang.Object
java.lang.Record
net.flectone.pulse.model.event.message.StatusResponseEvent
- All Implemented Interfaces:
Event
-
Nested Class Summary
Nested classes/interfaces inherited from interface Event
Event.Priority -
Constructor Summary
ConstructorsConstructorDescriptionStatusResponseEvent(boolean cancelled, com.google.gson.JsonObject response) Creates an instance of aStatusResponseEventrecord class.StatusResponseEvent(com.google.gson.JsonObject response) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.google.gson.JsonObjectresponse()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.withCancelled(boolean cancelled) withResponse(com.google.gson.JsonObject response)
-
Constructor Details
-
StatusResponseEvent
public StatusResponseEvent(com.google.gson.JsonObject response) -
StatusResponseEvent
public StatusResponseEvent(boolean cancelled, com.google.gson.JsonObject response) Creates an instance of aStatusResponseEventrecord class.- Parameters:
cancelled- the value for thecancelledrecord componentresponse- the value for theresponserecord component
-
-
Method Details
-
withCancelled
- Specified by:
withCancelledin interfaceEvent- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withResponse
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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. -
cancelled
-
response
public com.google.gson.JsonObject response()Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-