Package org.wildfly.extension.mcp.api
Record Class FeatureMetadata<M>
java.lang.Object
java.lang.Record
org.wildfly.extension.mcp.api.FeatureMetadata<M>
- Type Parameters:
M- The response message
- All Implemented Interfaces:
Comparable<FeatureMetadata<M>>
public record FeatureMetadata<M>(FeatureMetadata.Feature feature, FeatureMethodInfo info, org.apache.sshd.common.util.io.functors.Invoker<Object,Object> invoker, ExecutionModel executionModel, Function<Object,M> resultMapper)
extends Record
implements Comparable<FeatureMetadata<M>>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFeatureMetadata(FeatureMetadata.Feature feature, FeatureMethodInfo info, org.apache.sshd.common.util.io.functors.Invoker<Object, Object> invoker, ExecutionModel executionModel, Function<Object, M> resultMapper) Creates an instance of aFeatureMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.json.JsonObjectasJson()intfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionModelrecord component.feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.invoker()Returns the value of theinvokerrecord component.Returns the value of theresultMapperrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FeatureMetadata
public FeatureMetadata(FeatureMetadata.Feature feature, FeatureMethodInfo info, org.apache.sshd.common.util.io.functors.Invoker<Object, Object> invoker, ExecutionModel executionModel, Function<Object, M> resultMapper) Creates an instance of aFeatureMetadatarecord class.- Parameters:
feature- the value for thefeaturerecord componentinfo- the value for theinforecord componentinvoker- the value for theinvokerrecord componentexecutionModel- the value for theexecutionModelrecord componentresultMapper- the value for theresultMapperrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<M>
-
asJson
public jakarta.json.JsonObject asJson() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
feature
Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
invoker
Returns the value of theinvokerrecord component.- Returns:
- the value of the
invokerrecord component
-
executionModel
Returns the value of theexecutionModelrecord component.- Returns:
- the value of the
executionModelrecord component
-
resultMapper
Returns the value of theresultMapperrecord component.- Returns:
- the value of the
resultMapperrecord component
-