Package io.micronaut.data.intercept
Record Class RepositoryMethodKey
java.lang.Object
java.lang.Record
io.micronaut.data.intercept.RepositoryMethodKey
- Record Components:
- repository- The repository instance
- method- The method
@Internal
public record RepositoryMethodKey(Object repository, io.micronaut.inject.ExecutableMethod<?,?> method)
extends Record 
Key used to cache results for repository method invocations.
- Since:
- 1.0
- Author:
- graemerocher
- 
Constructor SummaryConstructorsConstructorDescriptionRepositoryMethodKey(Object repository, io.micronaut.inject.ExecutableMethod<?, ?> method) Creates an instance of aRepositoryMethodKeyrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.micronaut.inject.ExecutableMethod<?,?> method()Returns the value of themethodrecord component.Returns the value of therepositoryrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
RepositoryMethodKeyCreates an instance of aRepositoryMethodKeyrecord class.- Parameters:
- repository- the value for the- repositoryrecord component
- method- the value for the- methodrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
repositoryReturns the value of therepositoryrecord component.- Returns:
- the value of the repositoryrecord component
 
- 
methodpublic io.micronaut.inject.ExecutableMethod<?,?> method()Returns the value of themethodrecord component.- Returns:
- the value of the methodrecord component
 
 
-