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<?>>
)
|
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