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, 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 |
isEnabled(BeanContext context)
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
getTypeName, getTypeString, hasTypeVariables, isContainerType, isInstance, listOf, mapOf, of, of, of, of, of, of, setOf, toClassArray, toString
getFirstTypeVariable, getTypeParameters, getTypeVariable
isDeclaredNullable, isNullable
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation
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 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 Class<T> getBeanType()
BeanType
getBeanType
in interface BeanType<T>
public boolean isEnabled(BeanContext context)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The context