Uses of Class
com.ssgllc.fish.service.util.registered.CollectionUtil.FluentList
Packages that use CollectionUtil.FluentList
-
Uses of CollectionUtil.FluentList in com.ssgllc.fish.service.util.registered
Methods in com.ssgllc.fish.service.util.registered that return CollectionUtil.FluentListModifier and TypeMethodDescriptionCollectionUtil.FluentList.addAll(Collection<Object> values) CollectionUtil.FluentList.addAllIfNotNull(Collection<Object> values) CollectionUtil.FluentList.addIfNotNull(Object value) static CollectionUtil.FluentListCollectionUtil.createEmptyFluentList()Creates a newCollectionUtil.FluentListinstance with an initially empty list.
This allows for fluent-style operations to add elements to the list immediately after creation.static CollectionUtil.FluentListCollectionUtil.createFluentList(Object object) Creates a newCollectionUtil.FluentListinstance initialized with a single object.static CollectionUtil.FluentListCollectionUtil.createListWithObject(List<Object> values, String objectName, Object obj) Creates aCollectionUtil.FluentListby wrapping each value in aCollectionUtil.FluentMapthat includes the value, a zero-based index, and an optional named object reference.
IfobjectNameis provided, the map will include an entry using that name pointing toobj.static CollectionUtil.FluentListCollectionUtil.createListWithRoot(List<Object> values) Creates aCollectionUtil.FluentListwhere each entry is aCollectionUtil.FluentMapcontaining a shared root reference (the input list itself), the current value, and a zero-based index.
Each entry in the returned list is a map with: root – the original input list (values) value – the current element fromvaluesindex – the zero-based position of the element
This is useful for computations that need access to neighboring values (e.g. comparing the current element to the next element) while still producing a list output.static CollectionUtil.FluentListCollectionUtil.flatMapWithRoot(Collection<Object> roots, String path) Flattens a collection of root objects by navigating a dot-delimited property path and returns aCollectionUtil.FluentListof maps containing the original root, each resolved leaf value, and the index of that leaf per root.
The path may span multiple levels and collections.static CollectionUtil.FluentListWraps each item in a list into aCollectionUtil.FluentMapcontaining the item and its zero-based index, returning the results as aCollectionUtil.FluentList.
Each entry in the returned list is a map with: value – the item from the input list index – the zero-based position of the item