Class ArgumentResult


  • public class ArgumentResult
    extends java.lang.Object
    This class converts a value into the given type with parsing string values and using ArgumentResultConverter
    • Constructor Summary

      Constructors 
      Constructor Description
      ArgumentResult​(java.lang.Class<?> clazz, java.lang.Object value)
      Default constructor
      ArgumentResult​(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
      • Methods inherited from class java.lang.Object

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

      • ArgumentResult

        public ArgumentResult​(java.lang.Class<?> clazz,
                              java.lang.Object value)
        Default constructor
        Parameters:
        clazz - the class the value need to converted to
        value - 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 to
        value - the value that need to be converted
        converter - the converter
    • Method Detail

      • get

        public <T> T get()
        Runs the process method and returns its result
        Type Parameters:
        T - the type of clazz
        Returns:
        the converted value with T type