Record Class McpToolContent
java.lang.Object
java.lang.Record
com.codedprojects.apimapper.client.contracts.McpToolContent
-
Constructor Summary
ConstructorsConstructorDescriptionMcpToolContent(String type, String text, com.fasterxml.jackson.databind.JsonNode data) Creates an instance of aMcpToolContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodedata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
McpToolContent
Creates an instance of aMcpToolContentrecord class.- Parameters:
type- the value for thetyperecord componenttext- the value for thetextrecord componentdata- the value for thedatarecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
data
public com.fasterxml.jackson.databind.JsonNode data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-