Package net.starype.quiz.api.parser
Class ArgumentValue<T>
- java.lang.Object
-
- net.starype.quiz.api.parser.ArgumentValue<T>
-
-
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.StringgetName()Retrieve the name of the argument of current instance ofArgumentValueTgetValue()Retrieve the value associate to the argumentvoidsetValue(T value)Set the value stored by theArgumentValueto a given value
-
-
-
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 valuevalue- 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 ofArgumentValue
-
getValue
public T getValue()
Retrieve the value associate to the argument- Returns:
- T the value stored in the current
ArgumentValueinstance
-
setValue
public void setValue(T value)
Set the value stored by theArgumentValueto a given value- Parameters:
value- the new value stored by theArgumentValueinstance
-
-