Record Class AbstractListenerAnnotationBeanPostProcessor.ListenerMethod<A extends Annotation>
java.lang.Object
java.lang.Record
org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor.ListenerMethod<A>
- Type Parameters:
A- the annotation type.- Record Components:
method- the method with annotationsannotations- on the method
- Enclosing class:
AbstractListenerAnnotationBeanPostProcessor<A extends Annotation>
protected static record AbstractListenerAnnotationBeanPostProcessor.ListenerMethod<A extends Annotation>(Method method, List<A extends Annotation> annotations)
extends Record
A method annotated with
A, together with the annotations.- Since:
- 4.1
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedListenerMethod(Method method, List<A> annotations) Creates an instance of aListenerMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ListenerMethod
Creates an instance of aListenerMethodrecord class.- Parameters:
method- the value for themethodrecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
method
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-