createArrayFromString

Creates array of given type from single String value. String value is always parsed by given
separator into smaller chunks. Every chunk will represent independent object in final array.
The exact conversion process from String value into final type is done by
createInstanceFromString method.

Type Parameters:

T - type parameter representing final array type

Parameters:

input - input

separator - separator which will be used in the process of tokenizing input

finalType - type of final array

Returns:

final array

Throws:

java.lang.NullPointerException - if any of given parameters is null

java.lang.IllegalArgumentException - if array of given type cannot be created