Record Class AnnotationScanner.AnnotatedMember<T>
java.lang.Object
java.lang.Record
cloud.opencode.base.reflect.scan.AnnotationScanner.AnnotatedMember<T>
- Type Parameters:
T- the element type | 元素类型
- Enclosing class:
AnnotationScanner
public static record AnnotationScanner.AnnotatedMember<T>(Class<?> declaringClass, T element, Annotation annotation)
extends Record
Result holder for annotated element
被注解元素结果持有者
- Since:
- JDK 25, opencode-base-reflect V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedMember(Class<?> declaringClass, T element, Annotation annotation) Creates an instance of aAnnotatedMemberrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationrecord component.Class<?> Returns the value of thedeclaringClassrecord component.element()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnnotatedMember
Creates an instance of aAnnotatedMemberrecord class.- Parameters:
declaringClass- the value for thedeclaringClassrecord componentelement- the value for theelementrecord componentannotation- the value for theannotationrecord 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). -
declaringClass
Returns the value of thedeclaringClassrecord component.- Returns:
- the value of the
declaringClassrecord component
-
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
annotation
Returns the value of theannotationrecord component.- Returns:
- the value of the
annotationrecord component
-