Record Class GmcpMessage
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.engine.protocol.GmcpMessage
-
Constructor Summary
ConstructorsConstructorDescriptionGmcpMessage(String packageName, Object payload, boolean hasPayload) Creates an instance of aGmcpMessagerecord 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.booleanReturns the value of thehasPayloadrecord component.Returns the value of thepackageNamerecord component.payload()Returns the value of thepayloadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GmcpMessage
Creates an instance of aGmcpMessagerecord class.- Parameters:
packageName- the value for thepackageNamerecord componentpayload- the value for thepayloadrecord componenthasPayload- the value for thehasPayloadrecord 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. -
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
hasPayload
public boolean hasPayload()Returns the value of thehasPayloadrecord component.- Returns:
- the value of the
hasPayloadrecord component
-