Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel Package / DataImportOptions Class / setItemTypeProvider Method
The %java.util.function.Function<T, R>% accepts the java.lang.Iterable<T> or array for getting element type.The %java.util.function.Function<T, R>% returns the item java.lang.Class<T> of the java.lang.Iterable<T> or array.
In This Topic
    setItemTypeProvider Method
    In This Topic
    Sets the item type provider. It gets item type from the specified java.lang.Iterable<T> or array.The type is used to generate columns. The default behavior is to try to get the item type from the array, then try to get type from the first item.
    Syntax
    public void setItemTypeProvider( 
       java.util.function.Function<Object,Class<?>> value
    )

    Parameters

    value
    The %java.util.function.Function<T, R>% accepts the java.lang.Iterable<T> or array for getting element type.The %java.util.function.Function<T, R>% returns the item java.lang.Class<T> of the java.lang.Iterable<T> or array.
    See Also