Record Class InitializeRequest
java.lang.Object
java.lang.Record
org.wildfly.extension.mcp.api.InitializeRequest
public record InitializeRequest(Implementation implementation, String protocolVersion, List<ClientCapability> clientCapabilities)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInitializeRequest(Implementation implementation, String protocolVersion, List<ClientCapability> clientCapabilities) Creates an instance of aInitializeRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientCapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimplementationrecord component.Returns the value of theprotocolVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InitializeRequest
public InitializeRequest(Implementation implementation, String protocolVersion, List<ClientCapability> clientCapabilities) Creates an instance of aInitializeRequestrecord class.- Parameters:
implementation- the value for theimplementationrecord componentprotocolVersion- the value for theprotocolVersionrecord componentclientCapabilities- the value for theclientCapabilitiesrecord 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). -
implementation
Returns the value of theimplementationrecord component.- Returns:
- the value of the
implementationrecord component
-
protocolVersion
Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
clientCapabilities
Returns the value of theclientCapabilitiesrecord component.- Returns:
- the value of the
clientCapabilitiesrecord component
-