Record Class McpSchema.ResourceCapability
java.lang.Object
java.lang.Record
net.mcreator.io.mcp.protocol.McpSchema.ResourceCapability
- Enclosing class:
McpSchema
public static record McpSchema.ResourceCapability(boolean subscribe, boolean listChanged)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResourceCapability(boolean subscribe, boolean listChanged) Creates an instance of aResourceCapabilityrecord 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 thelistChangedrecord component.booleanReturns the value of thesubscriberecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceCapability
public ResourceCapability(boolean subscribe, boolean listChanged) Creates an instance of aResourceCapabilityrecord class.- Parameters:
subscribe- the value for thesubscriberecord componentlistChanged- the value for thelistChangedrecord 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 with thecomparemethod from their corresponding wrapper classes. -
subscribe
public boolean subscribe()Returns the value of thesubscriberecord component.- Returns:
- the value of the
subscriberecord component
-
listChanged
public boolean listChanged()Returns the value of thelistChangedrecord component.- Returns:
- the value of the
listChangedrecord component
-