Record Class ParameterDescription
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.definitions.description.ParameterDescription
- Record Components:
type- theClassrepresenting the declaredType of this parametertypeArguments- the generic type arguments of the type (ParameterizedType.getActualTypeArguments()). They only represent the first layer and are all raw types represented asClassinstances or null if wildcard/no class.name- the name of the parameterannotations- aCollectionof allAnnotationDescriptions this parameter is annotated with
- All Implemented Interfaces:
Description
public record ParameterDescription(Class<?> type, @Nullable Class<?>[] typeArguments, String name, Collection<AnnotationDescription<?>> annotations)
extends Record
implements Description
A
Description that describes a parameter.-
Constructor Summary
ConstructorsConstructorDescriptionParameterDescription(Class<?> type, @Nullable Class<?>[] typeArguments, String name, Collection<AnnotationDescription<?>> annotations) Creates an instance of aParameterDescriptionrecord 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.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.Class<?> type()Returns the value of thetyperecord component.@Nullable Class<?>[]Returns the value of thetypeArgumentsrecord component.Methods inherited from interface Description
annotation
-
Constructor Details
-
ParameterDescription
public ParameterDescription(Class<?> type, @Nullable Class<?>[] typeArguments, String name, Collection<AnnotationDescription<?>> annotations) Creates an instance of aParameterDescriptionrecord class.- Parameters:
type- the value for thetyperecord componenttypeArguments- the value for thetypeArgumentsrecord componentname- the value for thenamerecord 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). -
type
-
typeArguments
Returns the value of thetypeArgumentsrecord component.- Returns:
- the value of the
typeArgumentsrecord component
-
name
-
annotations
Returns the value of theannotationsrecord component.- Specified by:
annotationsin interfaceDescription- Returns:
- the value of the
annotationsrecord component
-