Class ArrayFunctionUtils
java.lang.Object
com.flowable.platform.common.el.collection.ArrayFunctionUtils
Utility methods for array/collection operations using standard Java functional interfaces.
Used by the
flw.array EL resolver which wraps EL-specific types (like LambdaExpression)
into Predicate, Function, and BiFunction before calling these methods.- Author:
- Tijs Rademakers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic Objectstatic Objectstatic Objectstatic longstatic Objectstatic Objectstatic Objectstatic Objectstatic booleanstatic longstatic booleanstatic booleanstatic Objectstatic Objectstatic booleanstatic Objectpick(Object collection, List<String> propertyNames, Function<Object, Function<String, Object>> propertyResolver) static Objectstatic Objectstatic Objectstatic Objectsort(Object collection, String property, String order, String nullsPosition, Function<Object, Object> propertyAccessor) protected static ObjecttoArrayNode(List<Object> items) static Iterable<?> toIterable(Object collection) static ObjectIf the original collection was a Jackson ArrayNode, convert the result list back to an ArrayNode.protected static ObjectunwrapJsonNode(org.flowable.common.engine.impl.json.FlowableJsonNode node) Unwrap a FlowableJsonNode to a Java object.
-
Constructor Details
-
ArrayFunctionUtils
public ArrayFunctionUtils()
-
-
Method Details
-
filter
-
map
-
flatMap
-
find
-
any
-
all
-
none
-
count
-
reduce
-
indexOf
-
includes
-
first
-
last
-
isEmpty
-
sort
-
append
-
compact
-
concat
-
reverse
-
slice
-
pick
-
toResult
-
toArrayNode
-
unwrapJsonNode
Unwrap a FlowableJsonNode to a Java object. Value nodes (string, number, boolean) are unwrapped to their Java equivalents. Object and array nodes are kept as native Jackson nodes so that property access (e.g., item.name) works via the EL resolver. -
isEqual
-
toList
-
toIterable
-