Class Array
java.lang.Object
com.surrealdb.Native
com.surrealdb.Array
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList-based counterpart toof(java.lang.Object...)for callers that already hold aList.final Valueget(int idx) iterator()final <T> Iterator<T> final intlen()static ArrayCreates an Array from a heterogeneous sequence of Java values.final <T> Iterator<T> synchronizedIterator(Class<T> clazz) Methods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
of
Creates an Array from a heterogeneous sequence of Java values. Supported element types includenull,String, the boxed numeric types,Boolean,BigDecimal,UUID,Duration,ZonedDateTime, and the SurrealDB wrappersArray,Id,RecordId, andObject. Unsupported types raiseIllegalArgumentException.To build a single-element
[null]array, cast the argument:Array.of((java.lang.Object) null). A bareArray.of(null)is a null varargs array and will throwNullPointerException. -
fromList
List-based counterpart toof(java.lang.Object...)for callers that already hold aList. Named distinctly fromof(...)to avoid a null-call overload ambiguity. -
get
-
len
public final int len() -
iterator
-
iterator
-
synchronizedIterator
-
synchronizedIterator
-