T
- The generic typepublic final class ArgumentBeanType<T> extends Object implements BeanType<T>, Argument<T>
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LIST_OF_STRING, LONG, OBJECT_ARGUMENT, SHORT, STRING, VOID, VOID_OBJECT, 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.
|
Class<T> |
getBeanType()
Returns the bean type.
|
String |
getName() |
Class<T> |
getType() |
Map<String,Argument<?>> |
getTypeVariables() |
boolean |
isContainerType()
Checks whether the bean type is a container type.
|
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
getExposedTypes, isCandidateBean, requiresMethodProcessing
isAssignableFrom, isAssignableFrom, isInstance, isTypeVariable, listOf, listOf, mapOf, mapOf, of, of, of, of, of, of, of, of, of, ofTypeVariable, ofTypeVariable, ofTypeVariable, ofTypeVariable, setOf, setOf, toClassArray, toString
asParameterizedType, asType, getSimpleName, getTypeName, getTypeString, getWrappedType, getWrapperType, hasTypeVariables, isArray, isAsync, isAsyncOrReactive, isCompletable, isOptional, isPrimitive, isProvider, isReactive, isSpecifiedSingle, isVoid, isWrapperType
getFirstTypeVariable, getTypeParameters, getTypeVariable
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
public boolean isContainerType()
BeanType
isContainerType
in interface TypeInformation<T>
isContainerType
in interface BeanType<T>
Iterable
.public String getName()
public AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProvider
AnnotationMetadata.EMPTY_METADATA
.getAnnotationMetadata
in interface AnnotationMetadataProvider
AnnotationMetadata
public Map<String,Argument<?>> getTypeVariables()
getTypeVariables
in interface TypeVariableResolver
public Class<T> getType()
getType
in interface TypeInformation<T>
public boolean equalsType(@Nullable 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 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