isAggregate function
PIComposer APIPIComposer API

isAggregate#

bool isAggregate(FundamentalType fun)

Checks if the given FundamentalType represents a collection type.

Returns true if the type is an aggregate (collection) such as arrays, lists, or multi-dimensional collections of any fundamental type. Returns false for singular (non-collection) types.

This implementation assumes that all collection types in the FundamentalType enumeration are defined sequentially after the non-collection types, and uses index comparison for efficient checking.

Example:

isAggregate(FundamentalType.STRING);    // false (singular)
isAggregate(FundamentalType.STRINGS);   // true (1D collection)
isAggregate(FundamentalType.STRINGS2);  // true (2D collection)