Class ObjectArgument<E>

  • Type Parameters:
    E - the type of the wrapped value.
    All Implemented Interfaces:
    Argument

    public class ObjectArgument<E>
    extends Object
    implements Argument
    A launch argument implementation that simply wraps a value.
    • Constructor Detail

      • ObjectArgument

        public ObjectArgument​(E value)
        Instantiates an argument that wraps the specified value.
        Parameters:
        value - the value wrapped in this argument.
    • Method Detail

      • getObject

        public final E getObject()
        Returns the underlying value (the one provided to the constructor).
        Returns:
        the underlying value.
      • getValueDescriptor

        public String getValueDescriptor()
        Return the String representation of the underlying value.
        Specified by:
        getValueDescriptor in interface Argument
        Returns:
        the String representation of the underlying value.