Class ArgumentValue<T>

  • Type Parameters:
    T - The type of the value associate to the name
    All Implemented Interfaces:
    Argument

    public class ArgumentValue<T>
    extends java.lang.Object
    implements Argument
    Defines an argument based on a name and a value
    • Constructor Summary

      Constructors 
      Constructor Description
      ArgumentValue​(java.lang.String name, T value)
      Default constructor of the ArgumentValue
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getName()
      Retrieve the name of the argument of current instance of ArgumentValue
      T getValue()
      Retrieve the value associate to the argument
      void setValue​(T value)
      Set the value stored by the ArgumentValue to a given value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArgumentValue

        public ArgumentValue​(java.lang.String name,
                             T value)
        Default constructor of the ArgumentValue
        Parameters:
        name - the name of the argument associate to the given value
        value - generic value that is associate to the given name
    • Method Detail

      • getName

        public java.lang.String getName()
        Retrieve the name of the argument of current instance of ArgumentValue
        Specified by:
        getName in interface Argument
        Returns:
        The name of the argument
      • getValue

        public T getValue()
        Retrieve the value associate to the argument
        Returns:
        T the value stored in the current ArgumentValue instance
      • setValue

        public void setValue​(T value)
        Set the value stored by the ArgumentValue to a given value
        Parameters:
        value - the new value stored by the ArgumentValue instance