Interface PqVariantArray
Indexed view of a Variant ARRAY value. Elements are heterogeneous Variants
— callers inspect each element's VariantType and unwrap appropriately.
PqVariantArray arr = v.asArray();
for (PqVariant e : arr) {
if (e.type() == VariantType.INT32) {
int x = e.asInt();
}
}
-
Method Summary
Methods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
size
int size()Number of elements in the array. -
get
Element at the given zero-based index, decoded lazily.- Throws:
IndexOutOfBoundsException- ifindexis not in[0, size())
-
iterator
-