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
ConstructorsConstructorDescriptionRepositoryMethodKey(Object repository, io.micronaut.inject.ExecutableMethod<?, ?> method) Creates an instance of aRepositoryMethodKeyrecord 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.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
-
RepositoryMethodKey
Creates an instance of aRepositoryMethodKeyrecord class.- Parameters:
repository- the value for therepositoryrecord componentmethod- the value for themethodrecord 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 therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
method
public io.micronaut.inject.ExecutableMethod<?,?> method()Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-