Record Class Method.Annotations
java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.type.Method.Annotations
- Enclosing class:
Method
public static record Method.Annotations(List<Annotation> methodAnnotations, AnnotatedType returnType, List<AnnotatedTypeParameter> typeParameters, @Nullable AnnotatedType receiverType, List<AnnotatedType> declaredExceptions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotations(List<Annotation> methodAnnotations, AnnotatedType returnType, List<AnnotatedTypeParameter> typeParameters, @Nullable AnnotatedType receiverType, List<AnnotatedType> declaredExceptions) Creates an instance of aAnnotationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaredExceptionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns the value of themethodAnnotationsrecord component.@Nullable AnnotatedTypeReturns the value of thereceiverTyperecord component.Returns the value of thereturnTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeParametersrecord component.
-
Constructor Details
-
Annotations
public Annotations(List<Annotation> methodAnnotations, AnnotatedType returnType, List<AnnotatedTypeParameter> typeParameters, @Nullable @Nullable AnnotatedType receiverType, List<AnnotatedType> declaredExceptions) Creates an instance of aAnnotationsrecord class.- Parameters:
methodAnnotations- the value for themethodAnnotationsrecord componentreturnType- the value for thereturnTyperecord componenttypeParameters- the value for thetypeParametersrecord componentreceiverType- the value for thereceiverTyperecord componentdeclaredExceptions- the value for thedeclaredExceptionsrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
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). -
methodAnnotations
Returns the value of themethodAnnotationsrecord component.- Returns:
- the value of the
methodAnnotationsrecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
typeParameters
Returns the value of thetypeParametersrecord component.- Returns:
- the value of the
typeParametersrecord component
-
receiverType
Returns the value of thereceiverTyperecord component.- Returns:
- the value of the
receiverTyperecord component
-
declaredExceptions
Returns the value of thedeclaredExceptionsrecord component.- Returns:
- the value of the
declaredExceptionsrecord component
-