Package io.micronaut.data.intercept
Record Class RepositoryMethodKey
java.lang.Object
java.lang.Record
io.micronaut.data.intercept.RepositoryMethodKey
- Record Components:
repository
- The repository instancemethod
- 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 Summary
ConstructorDescriptionRepositoryMethodKey
(Object repository, io.micronaut.inject.ExecutableMethod<?, ?> method) Creates an instance of aRepositoryMethodKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.io.micronaut.inject.ExecutableMethod<?,
?> method()
Returns the value of themethod
record component.Returns the value of therepository
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RepositoryMethodKey
Creates an instance of aRepositoryMethodKey
record class.- Parameters:
repository
- the value for therepository
record componentmethod
- the value for themethod
record component
-
-
Method Details
-
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)
. -
repository
Returns the value of therepository
record component.- Returns:
- the value of the
repository
record component
-
method
public io.micronaut.inject.ExecutableMethod<?,?> method()Returns the value of themethod
record component.- Returns:
- the value of the
method
record component
-