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.String
getName()
Retrieve the name of the argument of current instance ofArgumentValue
T
getValue()
Retrieve the value associate to the argumentvoid
setValue(T value)
Set the value stored by theArgumentValue
to 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
ArgumentValue
instance
-
setValue
public void setValue(T value)
Set the value stored by theArgumentValue
to a given value- Parameters:
value
- the new value stored by theArgumentValue
instance
-
-