Interface ITypeValue

  • All Superinterfaces:
    IValue
    All Known Implementing Classes:
    TypeValue

    public interface ITypeValue
    extends IValue
    Define the generic type based value which will represent the operation input and output of any primitive type.
    • Method Detail

      • get

        java.lang.Object get()
        Return the actual value object.
        Returns:
      • get

        <T> T get​(java.lang.Class<T> type)
        Get the value by converting it into the given type.
        Type Parameters:
        T -
        Parameters:
        type - The class of the type
        Returns:
      • get

        <T> T get​(java.lang.Class<T> type,
                  T defaultValue)
        Get the value by converting it into the given type. It should return the default value if value empty
        Type Parameters:
        T -
        Parameters:
        type - The class of the type
        defaultValue - The default value to use if the named property does not exist or cannot be converted to the requested type. The default value is also used to define the type to convert the value to. If this is null any existing property is not converted.
        Returns: