Analytics.DataList.getElementType()

Signature

String getElementType(Object dataList, int elementIndex)

Domain

ACTION

Description

Returns the datatype of the element present at the index mentioned in the passed DataList Object.

Parameters

NameTypeDescription
dataListObjectThe DataList Object.
elementIndexintThe index of the element whose type needs to be fetched from the passed DataList Object.

Returns

TypeDescription
StringReturns the datatype of the element present at the index mentioned in the passed DataList Object.

Example

int elementIndex = 2;
String elementType = Analytics.DataList.getElementType(dataList,elementIndex);