T
- The generic typepublic final class ArgumentBeanType<T> extends java.lang.Object implements BeanType<T>, Argument<T>
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LIST_OF_STRING, LONG, OBJECT_ARGUMENT, SHORT, STRING, VOID, ZERO_ARGUMENTS
EMPTY
Constructor and Description |
---|
ArgumentBeanType(Argument<T> argument)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalsType(Argument<?> other)
Whether the types are equivalent.
|
AnnotationMetadata |
getAnnotationMetadata()
Supplies the metadata.
|
java.lang.Class<T> |
getBeanType()
Returns the bean type.
|
java.lang.String |
getName() |
java.lang.Class<T> |
getType() |
java.util.Map<java.lang.String,Argument<?>> |
getTypeVariables() |
boolean |
isEnabled(BeanContext context)
Return whether this component is enabled for the given context.
|
boolean |
isEnabled(BeanContext context,
BeanResolutionContext resolutionContext)
Return whether this component is enabled for the given context.
|
boolean |
isPrimary() |
int |
typeHashCode()
The hash code including only the types.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiresMethodProcessing
asParameterizedType, getTypeName, getTypeString, hasTypeVariables, isAsync, isAsyncOrReactive, isCompletable, isContainerType, isInstance, isOptional, isReactive, isVoid, listOf, listOf, mapOf, mapOf, of, of, of, of, of, of, of, setOf, setOf, toClassArray, toString
getFirstTypeVariable, getTypeParameters, getTypeVariable
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation
public java.lang.String getName()
public AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProvider
AnnotationMetadata.EMPTY_METADATA
.getAnnotationMetadata
in interface AnnotationMetadataProvider
AnnotationMetadata
public java.util.Map<java.lang.String,Argument<?>> getTypeVariables()
getTypeVariables
in interface TypeVariableResolver
public java.lang.Class<T> getType()
public boolean equalsType(Argument<?> other)
Argument
Object.equals(Object)
implementation includes the argument
name within the comparison so this method offers a variation that just compares types.equalsType
in interface Argument<T>
other
- The type typepublic int typeHashCode()
Argument
Object.hashCode()
implementation includes the
argument name within the comparison so this method offers a variation that just compares types.typeHashCode
in interface Argument<T>
public boolean isPrimary()
public java.lang.Class<T> getBeanType()
BeanType
getBeanType
in interface BeanType<T>
public boolean isEnabled(BeanContext context)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The contextpublic boolean isEnabled(@NonNull BeanContext context, @Nullable BeanResolutionContext resolutionContext)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The contextresolutionContext
- The bean resolution context