Package me.s3ns3iw00.jcommands.argument
Class ArgumentResult
- java.lang.Object
-
- me.s3ns3iw00.jcommands.argument.ArgumentResult
-
public class ArgumentResult extends java.lang.Object
This class converts a value into the given type with parsing string values and usingArgumentResultConverter
-
-
Constructor Summary
Constructors Constructor Description ArgumentResult(java.lang.Class<?> clazz, java.lang.Object value)
Default constructorArgumentResult(java.lang.Class<?> clazz, java.lang.Object value, ArgumentResultConverter converter)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get()
Runs the process method and returns its result
-
-
-
Constructor Detail
-
ArgumentResult
public ArgumentResult(java.lang.Class<?> clazz, java.lang.Object value)
Default constructor- Parameters:
clazz
- the class the value need to converted tovalue
- the value that need to be converted
-
ArgumentResult
public ArgumentResult(java.lang.Class<?> clazz, java.lang.Object value, ArgumentResultConverter converter)
Default constructor- Parameters:
clazz
- the class the value need to converted tovalue
- the value that need to be convertedconverter
- the converter
-
-