Package com.couchbase.lite
Class ArrayFunction
java.lang.Object
com.couchbase.lite.ArrayFunction
Function provides array functions.
- 
Method SummaryModifier and TypeMethodDescriptionstatic Expressioncontains(Expression expression, Expression value) Creates an ARRAY_CONTAINS(expr, value) function that checks whether the given array expression contains the given value or not.static Expressionlength(Expression expression) Creates an ARRAY_LENGTH(expr) function that returns the length of the given array expression.
- 
Method Details- 
contains@NonNull public static Expression contains(@NonNull Expression expression, @NonNull Expression value) Creates an ARRAY_CONTAINS(expr, value) function that checks whether the given array expression contains the given value or not.- Parameters:
- expression- The expression that evaluate to an array.
- value- The value to search for in the given array expression.
- Returns:
- The ARRAY_CONTAINS(expr, value) function.
 
- 
lengthCreates an ARRAY_LENGTH(expr) function that returns the length of the given array expression.- Parameters:
- expression- The expression that evaluates to an array.
- Returns:
- The ARRAY_LENGTH(expr) function.
 
 
-