Record Class FederationSchemaFactory.EntityMappingInfo
java.lang.Object
java.lang.Record
org.springframework.graphql.data.federation.FederationSchemaFactory.EntityMappingInfo
- Enclosing class:
- FederationSchemaFactory
public static record FederationSchemaFactory.EntityMappingInfo(String typeName, HandlerMethod handlerMethod)
extends Record
-
Constructor Summary
ConstructorDescriptionEntityMappingInfo
(String typeName, HandlerMethod handlerMethod) Creates an instance of aEntityMappingInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thehandlerMethod
record component.final int
hashCode()
Returns a hash code value for this object.boolean
final String
toString()
Returns a string representation of this record class.typeName()
Returns the value of thetypeName
record component.
-
Constructor Details
-
EntityMappingInfo
Creates an instance of aEntityMappingInfo
record class.- Parameters:
typeName
- the value for thetypeName
record componenthandlerMethod
- the value for thehandlerMethod
record component
-
-
Method Details
-
isBatchHandlerMethod
public boolean isBatchHandlerMethod() -
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)
. -
typeName
Returns the value of thetypeName
record component.- Returns:
- the value of the
typeName
record component
-
handlerMethod
Returns the value of thehandlerMethod
record component.- Returns:
- the value of the
handlerMethod
record component
-