T
- The argument type@Internal public class DefaultArgument<T> extends java.lang.Object implements Argument<T>
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LIST_OF_STRING, LONG, OBJECT_ARGUMENT, SHORT, STRING, VOID, ZERO_ARGUMENTS
EMPTY
Constructor and Description |
---|
DefaultArgument(java.lang.Class<T> type,
AnnotationMetadata annotationMetadata,
Argument... genericTypes) |
DefaultArgument(java.lang.Class<T> type,
java.lang.String name,
AnnotationMetadata annotationMetadata,
Argument... genericTypes) |
DefaultArgument(java.lang.Class<T> type,
java.lang.String name,
AnnotationMetadata annotationMetadata,
java.util.Map<java.lang.String,Argument<?>> typeParameters,
Argument[] typeParameterArray) |
DefaultArgument(java.lang.reflect.Type type,
java.lang.String name,
AnnotationMetadata annotationMetadata) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
boolean |
equalsType(Argument<?> o)
Whether the types are equivalent.
|
AnnotationMetadata |
getAnnotationMetadata()
Supplies the metadata.
|
java.util.Optional<Argument<?>> |
getFirstTypeVariable() |
java.lang.String |
getName() |
java.lang.Class<T> |
getType() |
Argument[] |
getTypeParameters() |
java.util.Map<java.lang.String,Argument<?>> |
getTypeVariables() |
int |
hashCode() |
java.lang.String |
toString() |
int |
typeHashCode()
The hash code including only the types.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
getTypeVariable
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation
public DefaultArgument(java.lang.Class<T> type, java.lang.String name, AnnotationMetadata annotationMetadata, Argument... genericTypes)
type
- The typename
- The nameannotationMetadata
- The annotation metadatagenericTypes
- The generic typespublic DefaultArgument(java.lang.Class<T> type, AnnotationMetadata annotationMetadata, Argument... genericTypes)
type
- The typeannotationMetadata
- The annotation metadatagenericTypes
- The generic typespublic DefaultArgument(java.lang.Class<T> type, java.lang.String name, AnnotationMetadata annotationMetadata, java.util.Map<java.lang.String,Argument<?>> typeParameters, Argument[] typeParameterArray)
type
- The typename
- The nameannotationMetadata
- The annotation metadatatypeParameters
- The map of parameterstypeParameterArray
- The array of argumentspublic DefaultArgument(java.lang.reflect.Type type, java.lang.String name, AnnotationMetadata annotationMetadata)
type
- The typename
- The nameannotationMetadata
- The annotation metadatapublic AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProvider
AnnotationMetadata.EMPTY_METADATA
.getAnnotationMetadata
in interface AnnotationMetadataProvider
AnnotationMetadata
public java.util.Optional<Argument<?>> getFirstTypeVariable()
getFirstTypeVariable
in interface TypeVariableResolver
public Argument[] getTypeParameters()
getTypeParameters
in interface TypeVariableResolver
public java.util.Map<java.lang.String,Argument<?>> getTypeVariables()
getTypeVariables
in interface TypeVariableResolver
public java.lang.Class<T> getType()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equalsType(Argument<?> o)
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>
o
- The type typepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public 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 int hashCode()
hashCode
in class java.lang.Object