Package io.micronaut.core.type
Interface MutableArgumentValue<V>
-
- Type Parameters:
V- The generic value
- All Superinterfaces:
AnnotatedElement,AnnotationMetadataProvider,AnnotationSource,Argument<V>,ArgumentValue<V>,Named,java.lang.reflect.Type,TypeInformation<V>,TypeVariableResolver
public interface MutableArgumentValue<V> extends ArgumentValue<V>
A mutable version of theArgumentValueinterface.- Since:
- 1.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Fields inherited from interface io.micronaut.core.type.Argument
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LIST_OF_STRING, LONG, OBJECT_ARGUMENT, SHORT, STRING, VOID, VOID_OBJECT, ZERO_ARGUMENTS
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T> MutableArgumentValue<T>create(Argument<T> argument, T value)Create a newMutableArgumentValuefor the givenArgumentand value.voidsetValue(V value)Sets the argument value.-
Methods inherited from interface io.micronaut.core.annotation.AnnotatedElement
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Methods inherited from interface io.micronaut.core.type.Argument
equalsType, getName, isAssignableFrom, isAssignableFrom, isInstance, isTypeVariable, typeHashCode
-
Methods inherited from interface io.micronaut.core.type.ArgumentValue
getValue
-
Methods inherited from interface io.micronaut.core.type.TypeInformation
asParameterizedType, asType, getSimpleName, getType, getTypeName, getTypeString, getWrappedType, getWrapperType, hasTypeVariables, isArray, isAsync, isAsyncOrReactive, isCompletable, isContainerType, isOptional, isPrimitive, isProvider, isReactive, isSpecifiedSingle, isVoid, isWrapperType
-
Methods inherited from interface io.micronaut.core.type.TypeVariableResolver
getFirstTypeVariable, getTypeParameters, getTypeVariable, getTypeVariables
-
-
-
-
Method Detail
-
setValue
void setValue(V value)
Sets the argument value.- Parameters:
value- The value- Throws:
java.lang.IllegalArgumentException- If the argument is not a compatible argument
-
create
static <T> MutableArgumentValue<T> create(Argument<T> argument, T value)
Create a newMutableArgumentValuefor the givenArgumentand value.- Type Parameters:
T- The value type- Parameters:
argument- The argumentvalue- The value- Returns:
- The created instance
-
-