Interface MutableArgumentValue<V>

Type Parameters:
V - The generic value
All Superinterfaces:
AnnotatedElement, AnnotationMetadataProvider, AnnotationSource, Argument<V>, ArgumentValue<V>, Named, Type, TypeInformation<V>, TypeVariableResolver

public interface MutableArgumentValue<V> extends ArgumentValue<V>
A mutable version of the ArgumentValue interface.
Since:
1.0
Author:
Graeme Rocher
  • Method Details

    • setValue

      void setValue(V value)
      Sets the argument value.
      Parameters:
      value - The value
      Throws:
      IllegalArgumentException - If the argument is not a compatible argument
    • create

      static <T> MutableArgumentValue<T> create(Argument<T> argument, T value)
      Create a new MutableArgumentValue for the given Argument and value.
      Type Parameters:
      T - The value type
      Parameters:
      argument - The argument
      value - The value
      Returns:
      The created instance