public class CollectionsFunctions extends Object
Constructor and Description |
---|
CollectionsFunctions()
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
CollectionHolder |
add(ExecutionContext ctx,
CollectionHolder collection,
Object... elements)
Returns a collection created by adding the specified element at the end of the collection.
|
ListHolder |
add(ExecutionContext ctx,
ListHolder list,
Object... elements)
Returns a list created by adding the specified element at the end of the list.
|
MapHolder |
add(ExecutionContext ctx,
MapHolder map,
Object key,
Object value)
Returns a map created by adding the specified key-value pair to the map.
|
SetHolder |
add(ExecutionContext ctx,
SetHolder set,
Object... elements)
Returns a set created by adding the specified element to the set.
|
ListHolder |
addAll(ExecutionContext ctx,
ListHolder... lists)
Deprecated.
This method was used in LSPS 2.6
|
ListHolder |
addAll(ExecutionContext ctx,
ListHolder list,
CollectionHolder... collections)
Returns a list created as concatenation of list and collections.
|
ListHolder |
addAll(ExecutionContext ctx,
ListHolder list,
Decimal index,
CollectionHolder... elements)
Returns a list created by adding the specified elements, given as a collections, from the position
specified by index to the list.
|
ListHolder |
addAll(ExecutionContext ctx,
ListHolder list,
Decimal index,
ListHolder... elements)
Deprecated.
This method was used in LSPS 2.6
|
MapHolder |
addAll(ExecutionContext ctx,
MapHolder... maps)
Returns a map created as union of maps.
|
SetHolder |
addAll(ExecutionContext ctx,
SetHolder... sets)
Deprecated.
This method was used in LSPS 2.6
|
SetHolder |
addAll(ExecutionContext ctx,
SetHolder set,
CollectionHolder... collections)
Returns a set created as concatenation of set and collections.
|
SetHolder |
addAll(ExecutionContext ctx,
SetHolder set,
Decimal index,
CollectionHolder... elements)
Returns a set created by adding the specified elements, given as a collections, from the position
specified by index to the set.
|
CollectionHolder |
addAllCollections(ExecutionContext ctx,
CollectionHolder... collections)
Returns a collection created as concatenation of collections.
|
CollectionHolder |
addAllCollections(ExecutionContext ctx,
CollectionHolder collection,
Decimal index,
CollectionHolder... elements)
Returns a collection created by adding the specified elements, given as a collections, from the position
specified by index to the collection.
|
CollectionHolder |
addAt(ExecutionContext ctx,
CollectionHolder collection,
Decimal index,
Object... elements)
Returns a collection created by adding the specified elements from the position specified by index
to the collection.
|
ListHolder |
addAt(ExecutionContext ctx,
ListHolder list,
Decimal index,
Object... elements)
Returns a list created by adding the specified elements from the position specified by index
to the list.
|
SetHolder |
addAt(ExecutionContext ctx,
SetHolder set,
Decimal index,
Object... elements)
Returns a set created by adding the specified elements from the position specified by index
to the set.
|
CollectionHolder |
collect(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder function)
When given a collection
[a_1, a_2, ..., a_n] , this method returns [function(a_1),
function(a_2), ..., function(a_n)] . |
ListHolder |
collect(ExecutionContext ctx,
ListHolder list,
ClosureHolder function)
When given a list
[a_1, a_2, ..., a_n] , this method returns [function(a_1),
function(a_2), ..., function(a_n)] . |
SetHolder |
collect(ExecutionContext ctx,
SetHolder set,
ClosureHolder function)
When given a set
[a_1, a_2, ..., a_n] , this method returns [function(a_1),
function(a_2), ..., function(a_n)] . |
ListHolder |
collectMap(ExecutionContext ctx,
MapHolder map,
ClosureHolder function)
Collects over map entries.
|
CollectionHolder |
collectWithIndex(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder function)
Returns a set/list/collection of values obtained by applying the function
to each item of the set/list/collection.
|
ListHolder |
collectWithIndex(ExecutionContext ctx,
ListHolder list,
ClosureHolder function)
Returns a set/list/collection of values obtained by applying the function
to each item of the set/list/collection.
|
SetHolder |
collectWithIndex(ExecutionContext ctx,
SetHolder set,
ClosureHolder function)
Returns a set/list/collection of values obtained by applying the function
to each item of the set/list/collection.
|
CollectionHolder |
compact(ExecutionContext ctx,
CollectionHolder collection)
Returns a collection containing non-null elements from a given
collection.
|
ListHolder |
compact(ExecutionContext ctx,
ListHolder list)
Returns a list containing non-null elements from a given list.
|
SetHolder |
compact(ExecutionContext ctx,
SetHolder set)
Returns a set containing non-null elements from a given set.
|
boolean |
contains(ExecutionContext ctx,
CollectionHolder collection,
Object... elements)
Test method to find out whether passed collection contains element
|
boolean |
contains(ExecutionContext ctx,
ListHolder list,
Object... elements)
Test method to find out whether passed list contains element
|
boolean |
contains(ExecutionContext ctx,
SetHolder set,
Object... elements)
Test method to find out whether passed set contains element
|
boolean |
containsAll(ExecutionContext ctx,
CollectionHolder collection,
CollectionHolder elements)
Test method to find out whether a given collection contains all elements.
|
boolean |
containsAny(ExecutionContext ctx,
CollectionHolder collection,
CollectionHolder elements)
Returns
true if the given collection contains any of the elements
from the second collection. |
boolean |
containsKeys(ExecutionContext ctx,
MapHolder map,
Object... keys)
Test method whether map contains key
|
boolean |
containsValues(ExecutionContext ctx,
MapHolder map,
Object... values)
Test method whether map contains value
|
Decimal |
count(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Counts the number of elements in the collection that fulfill the passed condition.
|
ListHolder |
difference(ExecutionContext ctx,
ListHolder list,
SetHolder set)
Subtracts the set from the list.
|
SetHolder |
difference(ExecutionContext ctx,
SetHolder set1,
SetHolder set2)
Subtracts the second set from the first set.
|
boolean |
exists(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Test whether any element in collection will fulfill passed condition
|
boolean |
exists(ExecutionContext ctx,
ListHolder list,
ClosureHolder condition)
Test whether any element in list will fulfill passed condition
|
boolean |
exists(ExecutionContext ctx,
SetHolder set,
ClosureHolder condition)
Test whether any element in list will fulfill passed condition
|
Decimal |
findIndex(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns the index of the first occurrence of the collection element which
satisfies the specified condition; returns -1 if the condition is false
for all elements of the collection.
|
Decimal |
findIndex(ExecutionContext ctx,
CollectionHolder collection,
Decimal fromIndex,
ClosureHolder condition)
Returns the index of the first occurrence of the collection element
which satisfies the specified condition, starting at
fromIndex . |
Decimal |
findIndex(ExecutionContext ctx,
CollectionHolder collection,
Decimal fromIndex,
Decimal toIndex,
ClosureHolder condition)
Returns the index of the first occurrence of the collection element
which satisfies the specified condition, starting at
fromIndex
(inclusive) and finishing at toIndex (exclusive). |
Decimal |
findLastIndex(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns the index of the last occurrence of the collection element which
satisfies the specified condition, searching backwards; returns -1 if the
condition is false for all elements of the collection.
|
Decimal |
findLastIndex(ExecutionContext ctx,
CollectionHolder collection,
Decimal toIndex,
ClosureHolder condition)
Returns the index of the last occurrence of the collection element which
satisfies the specified condition, searching backwards starting at index
toIndex - 1 ; returns -1 if no such element is found. |
Decimal |
findLastIndex(ExecutionContext ctx,
CollectionHolder collection,
Decimal fromIndex,
Decimal toIndex,
ClosureHolder condition)
Returns the index of the last occurrence of the collection element which
satisfies the specified condition, searching backwards starting at index
toIndex - 1 up to fromIndex ; returns -1 if no
such element is found. |
Object |
fold(ExecutionContext ctx,
CollectionHolder collection,
Object initialValue,
ClosureHolder function)
Combines the elements of the collection together using the binary function, starting with the
initialValue.
|
Object |
fold(ExecutionContext ctx,
ListHolder list,
Object initialValue,
ClosureHolder function)
Combines the elements of the list together using the binary function, starting with the
initialValue.
|
Object |
fold(ExecutionContext ctx,
SetHolder set,
Object initialValue,
ClosureHolder function)
Combines the elements of the set together using the binary function, starting with the
initialValue.
|
Object |
foldWithIndex(ExecutionContext ctx,
CollectionHolder collection,
Object initialValue,
ClosureHolder function)
Combines the elements of the collection together using the binary function, starting with the
initialValue.
|
boolean |
forAll(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Test whether all elements in collection will fulfill passed condition
|
boolean |
forAll(ExecutionContext ctx,
ListHolder list,
ClosureHolder condition)
Test whether all elements in list will fulfill passed condition
|
boolean |
forAll(ExecutionContext ctx,
SetHolder set,
ClosureHolder condition)
Test whether all elements in list will fulfill passed condition
|
SetHolder |
getDuplicates(ExecutionContext ctx,
CollectionHolder collection)
Returns a set of element which are contained more than one time
in a given collection.
|
Object |
getFirst(ExecutionContext ctx,
CollectionHolder collection)
Returns the first item of the collection, or
null if the
collection is empty. |
Object |
getFirst(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns the first element for which the given condition is true.
|
Type |
getItemType(ExecutionContext ctx,
Type type)
Deprecated.
Replaced by
TypeFunctions.getCollectionItemType(ExecutionContext, Type) . This function is used in LSPS 3.1 |
Object |
getLast(ExecutionContext ctx,
CollectionHolder collection)
Returns the last item of the collection, or
null if the
collection is empty. |
Object |
getLast(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns the last element for which the given condition is true.
|
MapHolder |
groupBy(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder classifier)
Performs "group by".
|
boolean |
hasDuplicates(ExecutionContext ctx,
CollectionHolder collection)
Returns
true if the collection contains duplicate elements,
false otherwise. |
Decimal |
indexOf(ExecutionContext ctx,
CollectionHolder collection,
Object value)
Returns the index of the first occurrence of the specified element in the collection, or -1 if the
list does not contain the element.
|
Decimal |
indexOf(ExecutionContext ctx,
ListHolder list,
Object value)
Returns the index of the first occurrence of the specified element in the list, or -1 if the
list does not contain the element.
|
boolean |
isEmpty(ExecutionContext ctx,
CollectionHolder collection)
Test method to check if collection is empty
|
boolean |
isEmpty(ExecutionContext ctx,
ListHolder list)
Test method to check if list is empty
|
boolean |
isEmpty(ExecutionContext ctx,
MapHolder map)
Test method to check if map is empty
|
boolean |
isEmpty(ExecutionContext ctx,
SetHolder set)
Test method to check if passed set is empty
|
boolean |
isSubset(ExecutionContext ctx,
SetHolder set,
SetHolder set2)
Test method to find out whether set1 is subset of set2
|
String |
join(ExecutionContext ctx,
CollectionHolder collection)
Joins string representations of objects in a given collection.
|
String |
join(ExecutionContext ctx,
CollectionHolder collection,
String joinString)
Joins string representations of objects in a given collection.
|
String |
join(ExecutionContext ctx,
CollectionHolder collection,
String joinString,
Boolean includeEmpty)
Joins string representations of objects in a given collection.
|
SetHolder |
keys(ExecutionContext ctx,
MapHolder map)
Returns a set of keys contained in the specified map.
|
SetHolder |
keysOf(ExecutionContext ctx,
MapHolder map,
Object value)
Returns a set of keys that are mapped to a given value.
|
Decimal |
lastIndexOf(ExecutionContext ctx,
CollectionHolder collection,
Object value)
Returns the index of the last occurrence of the specified element in the collection, or -1 if the
collection does not contain the element.
|
Decimal |
lastIndexOf(ExecutionContext ctx,
ListHolder list,
Object value)
Returns the index of the last occurrence of the specified element in the list, or -1 if the
list does not contain the element.
|
ListHolder |
listUnion(ExecutionContext ctx,
CollectionHolder... collections)
Creates a list of all elements in the given collection of collections.
|
MapHolder |
map(ExecutionContext ctx,
CollectionHolder keys,
ClosureHolder valueFunction)
For each key executes a given closure to obtain a map value.
|
MapHolder |
map(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder keyFunction,
ClosureHolder valueFunction)
For each element execute a keyFunction to obtain a map key and
valueFunction to obtain a map value.
|
MapHolder |
map(ExecutionContext ctx,
CollectionHolder keys,
CollectionHolder values)
Creates map from collection of keys and collection of values.
|
MapHolder |
map(ExecutionContext ctx,
ListHolder keys,
ListHolder values)
Creates map from list of keys and list of values Each of this lists must have same size
|
Object |
max(ExecutionContext ctx,
CollectionHolder collection)
Returns the maximum element from the given collection.
|
Date |
maxDate(ExecutionContext ctx,
CollectionHolder collection) |
Decimal |
maxDecimal(ExecutionContext ctx,
CollectionHolder collection) |
Decimal |
maxInteger(ExecutionContext ctx,
CollectionHolder collection) |
java.time.LocalDate |
maxLocalDate(ExecutionContext ctx,
CollectionHolder collection) |
String |
maxString(ExecutionContext ctx,
CollectionHolder collection) |
Object |
min(ExecutionContext ctx,
CollectionHolder collection)
Returns the minimum element from the given collection.
|
Date |
minDate(ExecutionContext ctx,
CollectionHolder collection) |
Decimal |
minDecimal(ExecutionContext ctx,
CollectionHolder collection) |
Decimal |
minInteger(ExecutionContext ctx,
CollectionHolder collection) |
java.time.LocalDate |
minLocalDate(ExecutionContext ctx,
CollectionHolder collection) |
String |
minString(ExecutionContext ctx,
CollectionHolder collection) |
boolean |
notEmpty(ExecutionContext ctx,
CollectionHolder collection)
Test method to check if collection is not empty.
|
boolean |
notEmpty(ExecutionContext ctx,
MapHolder map)
Test method to check if map is not empty.
|
CollectionHolder |
remove(ExecutionContext ctx,
CollectionHolder collection,
Object... elements)
Returns a collection created by removing first occurrences of the elements from
the collection.
|
ListHolder |
remove(ExecutionContext ctx,
ListHolder list,
Object... elements)
Returns a list created by removing first occurrences of the elements from
the list.
|
SetHolder |
remove(ExecutionContext ctx,
SetHolder set,
Object... elements)
Returns a set created by removing first occurrences of the elements from
the set.
|
CollectionHolder |
removeAll(ExecutionContext ctx,
CollectionHolder collection,
CollectionHolder elements)
Returns a collection created by removing all occurrences of the elements from
the collection.
|
ListHolder |
removeAll(ExecutionContext ctx,
ListHolder list,
CollectionHolder elements)
Returns a list created by removing all occurrences of the elements from
the list.
|
ListHolder |
removeAll(ExecutionContext ctx,
ListHolder list,
SetHolder set)
Deprecated.
This method was used in LSPS 2.6
|
SetHolder |
removeAll(ExecutionContext ctx,
SetHolder set,
CollectionHolder elements)
Returns a set created by removing all occurrences of the elements from
the set.
|
SetHolder |
removeAll(ExecutionContext ctx,
SetHolder set1,
SetHolder set2)
Deprecated.
This method was used in LSPS 2.6
|
CollectionHolder |
removeAt(ExecutionContext ctx,
CollectionHolder collection,
Decimal index)
Returns a collection created by removing an element of the collection from the position specified by
index.
|
ListHolder |
removeAt(ExecutionContext ctx,
ListHolder list,
Decimal index)
Returns a list created by removing an element of the list from the position specified by
index.
|
SetHolder |
removeAt(ExecutionContext ctx,
SetHolder set,
Decimal index)
Returns a set created by removing an element of the set from the position specified by
index.
|
MapHolder |
removeKey(ExecutionContext ctx,
MapHolder map,
Object... keys)
Returns a map created by removing the specified key (and its corresponding value) from the
map.
|
MapHolder |
removeKeys(ExecutionContext ctx,
MapHolder map,
CollectionHolder keys)
Returns a map created by removing the specified keys (and the corresponding values) from the
map.
|
CollectionHolder |
removeRange(ExecutionContext ctx,
CollectionHolder collection,
Decimal fromIndex,
Decimal toIndex)
Returns a collection created by removing the specified range of elements
from the given collection.
|
ListHolder |
removeRange(ExecutionContext ctx,
ListHolder list,
Decimal fromIndex,
Decimal toIndex)
Returns a list created by removing the specified range of elements from
the given list.
|
SetHolder |
removeRange(ExecutionContext ctx,
SetHolder set,
Decimal fromIndex,
Decimal toIndex)
Returns a set created by removing the specified range of elements from
the given set.
|
MapHolder |
removeValue(ExecutionContext ctx,
MapHolder map,
Object... values)
Returns a map created by removing all occurrences of the specified value (and their
corresponding keys) from the map.
|
CollectionHolder |
replace(ExecutionContext ctx,
CollectionHolder collection,
Object element1,
Object element2)
Returns a collection created by replacing all occurrences of the element1 by element2 in the collection.
|
ListHolder |
replace(ExecutionContext ctx,
ListHolder list,
Object element1,
Object element2)
Returns a list created by replacing all occurrences of the element1 by element2 in the list.
|
SetHolder |
replace(ExecutionContext ctx,
SetHolder set,
Object element1,
Object element2)
Returns a set created by replacing all occurrences of the element1 by element2 in the set.
|
MapHolder |
replaceValue(ExecutionContext ctx,
MapHolder map,
Object value1,
Object value2)
Returns a map created by replacing all occurrences of the values corresponding to the value1
by value2 in the map.
|
CollectionHolder |
retainAll(ExecutionContext ctx,
CollectionHolder collection,
CollectionHolder... collections)
Returns a collection created by intersection of collections.
|
ListHolder |
retainAll(ExecutionContext ctx,
ListHolder list,
CollectionHolder... collections)
Returns a list created by intersection of list and all collections.
|
ListHolder |
retainAll(ExecutionContext ctx,
ListHolder list,
SetHolder set)
Deprecated.
This method was used in LSPS 2.6
|
SetHolder |
retainAll(ExecutionContext ctx,
SetHolder... sets)
Deprecated.
This method was used in LSPS 2.6
|
SetHolder |
retainAll(ExecutionContext ctx,
SetHolder set,
CollectionHolder... collections)
Returns a set created by intersection of set and all collections.
|
CollectionHolder |
reverse(ExecutionContext ctx,
CollectionHolder collection)
Returns a collection created by reversing the order of the elements in the specified collection.
|
ListHolder |
reverse(ExecutionContext ctx,
ListHolder list)
Returns a list created by reversing the order of the elements in the specified list.
|
SetHolder |
reverse(ExecutionContext ctx,
SetHolder set)
Returns a set created by reversing the order of the elements in the specified set.
|
CollectionHolder |
select(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns a collection all the elements
e from the original collection where condition(e) == true . |
CollectionHolder |
select(ExecutionContext ctx,
CollectionHolder collection,
Type type)
Returns a collection all elements of the given type, null elements
not included.
|
ListHolder |
select(ExecutionContext ctx,
ListHolder list,
ClosureHolder condition)
Returns a list containing all the elements
e from the original list where condition(e) == true . |
ListHolder |
select(ExecutionContext ctx,
ListHolder list,
Type type)
Returns a list all elements of the given type, null elements
not included.
|
MapHolder |
select(ExecutionContext ctx,
MapHolder map,
ClosureHolder condition)
Returns a map containing all the map entries
(k,v) from the original map where
condition(k,v) == true . |
SetHolder |
select(ExecutionContext ctx,
SetHolder set,
ClosureHolder condition)
Returns a set containing all the elements
e from the original set where condition(e) == true . |
SetHolder |
select(ExecutionContext ctx,
SetHolder set,
Type type)
Returns a set all elements of the given type, null elements
not included.
|
CollectionHolder |
setAt(ExecutionContext ctx,
CollectionHolder collection,
Decimal index,
Object element)
Returns a collection created by replacing the element at the position given by index in the collection
with the specified element.
|
ListHolder |
setAt(ExecutionContext ctx,
ListHolder list,
Decimal index,
Object element)
Returns a list created by replacing the element at the position given by index in the list
with the specified element.
|
SetHolder |
setAt(ExecutionContext ctx,
SetHolder set,
Decimal index,
Object element)
Returns a set created by replacing the element at the position given by index in the set
with the specified element.
|
Decimal |
size(ExecutionContext ctx,
CollectionHolder collection)
Return size of a given collection.
|
Decimal |
size(ExecutionContext ctx,
ListHolder list)
Return size of passed list
|
Decimal |
size(ExecutionContext ctx,
MapHolder map)
Return size of passed map
|
Decimal |
size(ExecutionContext ctx,
SetHolder set)
Return size of SetHolder
|
CollectionHolder |
sort(ExecutionContext ctx,
CollectionHolder collection,
Boolean ascending)
Returns a list or set with items sorted in ascending or descending natural order.
|
CollectionHolder |
sort(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder comparator)
Returns items of the collection ordered according to the comparator.
|
ListHolder |
sort(ExecutionContext ctx,
ListHolder list,
Boolean ascending)
Returns a list with items sorted in ascending or descending natural order.
|
ListHolder |
sort(ExecutionContext ctx,
ListHolder list,
ClosureHolder comparator)
Returns items of the list ordered according to the comparator.
|
SetHolder |
sort(ExecutionContext ctx,
SetHolder set,
Boolean ascending)
Returns a set with items sorted in ascending or descending natural order.
|
SetHolder |
sort(ExecutionContext ctx,
SetHolder set,
ClosureHolder comparator)
Returns items of the set ordered according to the comparator.
|
ListHolder |
sortByKey(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder keyExtractor,
Boolean ascending,
Boolean nullsFirst)
Returns a list of elements sorted by keys produced by key extractor.
|
CollectionHolder |
subCollection(ExecutionContext ctx,
CollectionHolder collection,
Decimal fromIndex,
Decimal toIndex)
Returns a collection representing such a portion of the collection, which
starts from the specified fromIndex (inclusive) to the toIndex
(exclusive).
|
ListHolder |
subList(ExecutionContext ctx,
ListHolder list,
Decimal fromIndex,
Decimal toIndex)
Returns a list which represents the portion of the list between the specified fromIndex,
inclusive, and toIndex, exclusive.
|
SetHolder |
subSet(ExecutionContext ctx,
SetHolder set,
Decimal fromIndex,
Decimal toIndex)
Returns a set which represents the portion of the set between the
specified fromIndex, inclusive, and toIndex, exclusive.
|
Decimal |
sum(ExecutionContext ctx,
CollectionHolder collection)
Returns a sum of decimals in the given collection.
|
ListHolder |
swap(ExecutionContext ctx,
ListHolder list,
Decimal index1,
Decimal index2)
Returns a new list of elements of original list with elements at given indexes swapped.
|
ListHolder |
toList(ExecutionContext ctx,
CollectionHolder collection)
Returns a list of values contained in the set.
|
ListHolder |
toList(ExecutionContext ctx,
SetHolder set)
Deprecated.
This method was used in LSPS 2.6
|
SetHolder |
toSet(ExecutionContext ctx,
CollectionHolder collection)
Returns a set of values contained in the collection.
|
SetHolder |
toSet(ExecutionContext ctx,
ListHolder list)
Deprecated.
This method was used in LSPS 2.6
|
ListHolder |
values(ExecutionContext ctx,
MapHolder map)
Returns a list of values contained in the map.
|
public MapHolder map(ExecutionContext ctx, CollectionHolder keys, CollectionHolder values) throws ErrorException
ctx
- keys
- values
- ErrorException
public MapHolder map(ExecutionContext ctx, CollectionHolder keys, ClosureHolder valueFunction) throws ErrorException
ctx
- keys
- valueFunction
- ErrorException
public MapHolder map(ExecutionContext ctx, CollectionHolder collection, ClosureHolder keyFunction, ClosureHolder valueFunction) throws ErrorException
ctx
- collection
- keyFunction
- valueFunction
- ErrorException
public boolean isEmpty(ExecutionContext ctx, MapHolder map) throws ErrorException
ctx
- map
- ErrorException
public SetHolder retainAll(ExecutionContext ctx, SetHolder set, CollectionHolder... collections) throws ErrorException
ctx
- set
- collections
- ErrorException
public ListHolder retainAll(ExecutionContext ctx, ListHolder list, CollectionHolder... collections) throws ErrorException
ctx
- list
- collections
- ErrorException
public CollectionHolder retainAll(ExecutionContext ctx, CollectionHolder collection, CollectionHolder... collections) throws ErrorException
ctx
- collection
- collections
- ErrorException
public SetHolder difference(ExecutionContext ctx, SetHolder set1, SetHolder set2) throws ErrorException
ctx
- set1
- first setset2
- second setErrorException
public ListHolder difference(ExecutionContext ctx, ListHolder list, SetHolder set) throws ErrorException
ctx
- list
- a listset
- a set to subtractErrorException
public ListHolder removeAll(ExecutionContext ctx, ListHolder list, CollectionHolder elements) throws ErrorException
ctx
- list
- elements
- ErrorException
public SetHolder removeAll(ExecutionContext ctx, SetHolder set, CollectionHolder elements) throws ErrorException
ctx
- set
- elements
- ErrorException
public CollectionHolder removeAll(ExecutionContext ctx, CollectionHolder collection, CollectionHolder elements) throws ErrorException
ctx
- collection
- elements
- ErrorException
public ListHolder remove(ExecutionContext ctx, ListHolder list, Object... elements) throws ErrorException
ctx
- list
- elements
- ErrorException
public SetHolder remove(ExecutionContext ctx, SetHolder set, Object... elements) throws ErrorException
ctx
- set
- elements
- ErrorException
public CollectionHolder remove(ExecutionContext ctx, CollectionHolder collection, Object... elements) throws ErrorException
ctx
- collection
- elements
- ErrorException
public MapHolder removeValue(ExecutionContext ctx, MapHolder map, Object... values) throws ErrorException
ctx
- map
- the mapvalues
- values to removeErrorException
public MapHolder removeKey(ExecutionContext ctx, MapHolder map, Object... keys) throws ErrorException
ctx
- map
- the mapkeys
- keys to removeErrorException
public MapHolder removeKeys(ExecutionContext ctx, MapHolder map, CollectionHolder keys) throws ErrorException
ctx
- map
- the mapkeys
- keys to removeErrorException
public ListHolder removeAt(ExecutionContext ctx, ListHolder list, Decimal index) throws ErrorException
ctx
- list
- index
- ErrorException
public SetHolder removeAt(ExecutionContext ctx, SetHolder set, Decimal index) throws ErrorException
ctx
- set
- index
- ErrorException
public CollectionHolder removeAt(ExecutionContext ctx, CollectionHolder collection, Decimal index) throws ErrorException
ctx
- collection
- index
- ErrorException
public ListHolder replace(ExecutionContext ctx, ListHolder list, Object element1, Object element2) throws ErrorException
ctx
- list
- element1
- element2
- ErrorException
public SetHolder replace(ExecutionContext ctx, SetHolder set, Object element1, Object element2) throws ErrorException
ctx
- set
- element1
- element2
- ErrorException
public CollectionHolder replace(ExecutionContext ctx, CollectionHolder collection, Object element1, Object element2) throws ErrorException
ctx
- collection
- element1
- element2
- ErrorException
public MapHolder replaceValue(ExecutionContext ctx, MapHolder map, Object value1, Object value2) throws ErrorException
ctx
- map
- value1
- value2
- ErrorException
public SetHolder addAll(ExecutionContext ctx, SetHolder set, CollectionHolder... collections) throws ErrorException
ctx
- set
- collections
- ErrorException
public ListHolder addAll(ExecutionContext ctx, ListHolder list, CollectionHolder... collections) throws ErrorException
ctx
- list
- collections
- ErrorException
public CollectionHolder addAllCollections(ExecutionContext ctx, CollectionHolder... collections) throws ErrorException
ctx
- collections
- ErrorException
public ListHolder addAll(ExecutionContext ctx, ListHolder list, Decimal index, CollectionHolder... elements) throws ErrorException
ctx
- list
- index
- elements
- ErrorException
public SetHolder addAll(ExecutionContext ctx, SetHolder set, Decimal index, CollectionHolder... elements) throws ErrorException
ctx
- set
- index
- elements
- ErrorException
public CollectionHolder addAllCollections(ExecutionContext ctx, CollectionHolder collection, Decimal index, CollectionHolder... elements) throws ErrorException
ctx
- collection
- index
- elements
- ErrorException
public MapHolder addAll(ExecutionContext ctx, MapHolder... maps) throws ErrorException
ctx
- maps
- ErrorException
public SetHolder add(ExecutionContext ctx, SetHolder set, Object... elements) throws ErrorException
ctx
- set
- elements
- ErrorException
public ListHolder add(ExecutionContext ctx, ListHolder list, Object... elements) throws ErrorException
ctx
- list
- elements
- ErrorException
public CollectionHolder add(ExecutionContext ctx, CollectionHolder collection, Object... elements) throws ErrorException
ctx
- collection
- elements
- ErrorException
public MapHolder add(ExecutionContext ctx, MapHolder map, Object key, Object value) throws ErrorException
ctx
- map
- key
- value
- ErrorException
public SetHolder toSet(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public ListHolder toList(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public ListHolder values(ExecutionContext ctx, MapHolder map) throws ErrorException
ctx
- map
- ErrorException
public boolean isEmpty(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public Decimal size(ExecutionContext ctx, MapHolder map) throws ErrorException
ctx
- map
- ErrorException
public Decimal size(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public SetHolder keysOf(ExecutionContext ctx, MapHolder map, Object value) throws ErrorException
ctx
- map
- value
- ErrorException
public Decimal indexOf(ExecutionContext ctx, CollectionHolder collection, Object value) throws ErrorException
ctx
- collection
- value
- ErrorException
public Decimal lastIndexOf(ExecutionContext ctx, CollectionHolder collection, Object value) throws ErrorException
ctx
- collection
- value
- ErrorException
public boolean containsValues(ExecutionContext ctx, MapHolder map, Object... values) throws ErrorException
ctx
- map
- values
- ErrorException
public boolean containsKeys(ExecutionContext ctx, MapHolder map, Object... keys) throws ErrorException
ctx
- map
- keys
- ErrorException
public boolean contains(ExecutionContext ctx, CollectionHolder collection, Object... elements) throws ErrorException
ctx
- collection
- elements
- ErrorException
public boolean containsAll(ExecutionContext ctx, CollectionHolder collection, CollectionHolder elements) throws ErrorException
ctx
- collection
- elements
- ErrorException
public boolean containsAny(ExecutionContext ctx, CollectionHolder collection, CollectionHolder elements) throws ErrorException
true
if the given collection contains any of the elements
from the second collection.ctx
- collection
- elements
- ErrorException
public boolean isSubset(ExecutionContext ctx, SetHolder set, SetHolder set2) throws ErrorException
ctx
- set
- set2
- ErrorException
public boolean exists(ExecutionContext ctx, CollectionHolder collection, ClosureHolder condition) throws ErrorException
ctx
- collection
- condition
- ErrorException
public Decimal count(ExecutionContext ctx, CollectionHolder collection, ClosureHolder condition) throws ErrorException
ctx
- collection
- condition
- ErrorException
public SetHolder keys(ExecutionContext ctx, MapHolder map) throws ErrorException
ctx
- map
- ErrorException
public ListHolder collect(ExecutionContext ctx, ListHolder list, ClosureHolder function) throws ErrorException
[a_1, a_2, ..., a_n]
, this method returns [function(a_1),
function(a_2), ..., function(a_n)]
.ctx
- list
- function
- [function(a_1), function(a_2), ..., function(a_n)]
ErrorException
public SetHolder collect(ExecutionContext ctx, SetHolder set, ClosureHolder function) throws ErrorException
[a_1, a_2, ..., a_n]
, this method returns [function(a_1),
function(a_2), ..., function(a_n)]
.ctx
- set
- function
- [function(a_1), function(a_2), ..., function(a_n)]
ErrorException
public CollectionHolder collect(ExecutionContext ctx, CollectionHolder collection, ClosureHolder function) throws ErrorException
[a_1, a_2, ..., a_n]
, this method returns [function(a_1),
function(a_2), ..., function(a_n)]
.ctx
- collection
- function
- [function(a_1), function(a_2), ..., function(a_n)]
ErrorException
public ListHolder collectMap(ExecutionContext ctx, MapHolder map, ClosureHolder function) throws ErrorException
ctx
- map
- function
- ErrorException
public ListHolder collectWithIndex(ExecutionContext ctx, ListHolder list, ClosureHolder function) throws ErrorException
ctx
- list
- function
- ErrorException
public SetHolder collectWithIndex(ExecutionContext ctx, SetHolder set, ClosureHolder function) throws ErrorException
ctx
- set
- function
- ErrorException
public CollectionHolder collectWithIndex(ExecutionContext ctx, CollectionHolder collection, ClosureHolder function) throws ErrorException
ctx
- collection
- function
- ErrorException
public CollectionHolder select(ExecutionContext ctx, CollectionHolder collection, ClosureHolder condition) throws ErrorException
e
from the original collection where condition(e) == true
.ctx
- collection
- condition
- e
from original collection where condition(e) == true
ErrorException
public ListHolder select(ExecutionContext ctx, ListHolder list, ClosureHolder condition) throws ErrorException
e
from the original list where condition(e) == true
.ctx
- list
- condition
- e
from original list where condition(e) == true
ErrorException
public SetHolder select(ExecutionContext ctx, SetHolder set, ClosureHolder condition) throws ErrorException
e
from the original set where condition(e) == true
.ctx
- set
- condition
- e
from original set where condition(e) == true
ErrorException
public ListHolder select(ExecutionContext ctx, ListHolder list, Type type) throws ErrorException
ctx
- list
- type
- ErrorException
public SetHolder select(ExecutionContext ctx, SetHolder set, Type type) throws ErrorException
ctx
- set
- type
- ErrorException
public CollectionHolder select(ExecutionContext ctx, CollectionHolder collection, Type type) throws ErrorException
ctx
- collection
- type
- ErrorException
public MapHolder select(ExecutionContext ctx, MapHolder map, ClosureHolder condition) throws ErrorException
(k,v)
from the original map where
condition(k,v) == true
.ctx
- map
- condition
- (k,v)
from the original map where
condition(k,v) == true
ErrorException
public ListHolder setAt(ExecutionContext ctx, ListHolder list, Decimal index, Object element) throws ErrorException
ctx
- list
- index
- element
- ErrorException
NullPointerException
- if list
is null or index
is nullIllegalArgumentException
- if index
is out of bounds of list
public SetHolder setAt(ExecutionContext ctx, SetHolder set, Decimal index, Object element) throws ErrorException
ctx
- set
- index
- element
- ErrorException
NullPointerException
- if set
is null or index
is nullIllegalArgumentException
- if index
is out of bounds of set
public CollectionHolder setAt(ExecutionContext ctx, CollectionHolder collection, Decimal index, Object element) throws ErrorException
ctx
- collection
- index
- element
- ErrorException
NullPointerException
- if collection
is null or index
is nullIllegalArgumentException
- if index
is out of bounds of collection
public ListHolder addAt(ExecutionContext ctx, ListHolder list, Decimal index, Object... elements) throws ErrorException
ctx
- list
- index
- elements
- ErrorException
NullPointerException
- if list
of index
is nullIllegalArgumentException
- if index
is out of bounds of list
public SetHolder addAt(ExecutionContext ctx, SetHolder set, Decimal index, Object... elements) throws ErrorException
ctx
- set
- index
- elements
- ErrorException
NullPointerException
- if set
of index
is nullIllegalArgumentException
- if index
is out of bounds of set
public CollectionHolder addAt(ExecutionContext ctx, CollectionHolder collection, Decimal index, Object... elements) throws ErrorException
ctx
- collection
- index
- elements
- ErrorException
NullPointerException
- if collection
of index
is nullIllegalArgumentException
- if index
is out of bounds of collection
public ListHolder subList(ExecutionContext ctx, ListHolder list, Decimal fromIndex, Decimal toIndex) throws ErrorException
ctx
- list
- fromIndex
- toIndex
- ErrorException
public SetHolder subSet(ExecutionContext ctx, SetHolder set, Decimal fromIndex, Decimal toIndex) throws ErrorException
ctx
- set
- fromIndex
- toIndex
- ErrorException
public CollectionHolder subCollection(ExecutionContext ctx, CollectionHolder collection, Decimal fromIndex, Decimal toIndex) throws ErrorException
ctx
- collection
- fromIndex
- toIndex
- ErrorException
public ListHolder sort(ExecutionContext ctx, ListHolder list, ClosureHolder comparator) throws ErrorException
ctx
- list
- comparator
- ErrorException
public SetHolder sort(ExecutionContext ctx, SetHolder set, ClosureHolder comparator) throws ErrorException
ctx
- set
- comparator
- ErrorException
public CollectionHolder sort(ExecutionContext ctx, CollectionHolder collection, ClosureHolder comparator) throws ErrorException
ctx
- collection
- comparator
- ErrorException
public ListHolder sortByKey(ExecutionContext ctx, CollectionHolder collection, ClosureHolder keyExtractor, Boolean ascending, Boolean nullsFirst) throws ErrorException
ctx
- collection
- keyExtractor
- ascending
- if true
, natural order is used,
if false
reverse order is usednullsFirst
- if true
, nulls are considered as having
the lowest value, so in natural order will be the beginningErrorException
public Object fold(ExecutionContext ctx, CollectionHolder collection, Object initialValue, ClosureHolder function) throws ErrorException
ctx
- collection
- initialValue
- function
- ErrorException
public ListHolder reverse(ExecutionContext ctx, ListHolder list) throws ErrorException
ctx
- list
- ErrorException
public SetHolder reverse(ExecutionContext ctx, SetHolder set) throws ErrorException
ctx
- set
- ErrorException
public CollectionHolder reverse(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
@Deprecated public SetHolder addAll(ExecutionContext ctx, SetHolder... sets) throws ErrorException
ctx
- sets
- ErrorException
@Deprecated public ListHolder addAll(ExecutionContext ctx, ListHolder... lists) throws ErrorException
ctx
- lists
- ErrorException
@Deprecated public ListHolder addAll(ExecutionContext ctx, ListHolder list, Decimal index, ListHolder... elements) throws ErrorException
ctx
- list
- index
- elements
- ErrorException
public boolean contains(ExecutionContext ctx, ListHolder list, Object... elements) throws ErrorException
ctx
- list
- elements
- ErrorException
public boolean contains(ExecutionContext ctx, SetHolder set, Object... elements) throws ErrorException
ctx
- set
- elements
- ErrorException
public boolean exists(ExecutionContext ctx, SetHolder set, ClosureHolder condition) throws ErrorException
ctx
- set
- condition
- ErrorException
public boolean exists(ExecutionContext ctx, ListHolder list, ClosureHolder condition) throws ErrorException
ctx
- list
- condition
- ErrorException
public Object fold(ExecutionContext ctx, SetHolder set, Object initialValue, ClosureHolder function) throws ErrorException
ctx
- set
- initialValue
- function
- ErrorException
public Object fold(ExecutionContext ctx, ListHolder list, Object initialValue, ClosureHolder function) throws ErrorException
ctx
- list
- initialValue
- function
- ErrorException
public boolean forAll(ExecutionContext ctx, SetHolder set, ClosureHolder condition) throws ErrorException
ctx
- set
- condition
- ErrorException
public boolean forAll(ExecutionContext ctx, ListHolder list, ClosureHolder condition) throws ErrorException
ctx
- list
- condition
- ErrorException
public boolean forAll(ExecutionContext ctx, CollectionHolder collection, ClosureHolder condition) throws ErrorException
ctx
- collection
- condition
- ErrorException
public Decimal indexOf(ExecutionContext ctx, ListHolder list, Object value) throws ErrorException
ctx
- list
- value
- ErrorException
public boolean isEmpty(ExecutionContext ctx, ListHolder list) throws ErrorException
ctx
- list
- ErrorException
public boolean isEmpty(ExecutionContext ctx, SetHolder set) throws ErrorException
ctx
- set
- ErrorException
public Decimal lastIndexOf(ExecutionContext ctx, ListHolder list, Object value) throws ErrorException
ctx
- list
- value
- ErrorException
public MapHolder map(ExecutionContext ctx, ListHolder keys, ListHolder values) throws ErrorException
ctx
- keys
- values
- ErrorException
@Deprecated public ListHolder removeAll(ExecutionContext ctx, ListHolder list, SetHolder set) throws ErrorException
ctx
- list
- set
- ErrorException
@Deprecated public SetHolder removeAll(ExecutionContext ctx, SetHolder set1, SetHolder set2) throws ErrorException
ctx
- set1
- set2
- ErrorException
@Deprecated public SetHolder retainAll(ExecutionContext ctx, SetHolder... sets) throws ErrorException
ctx
- sets
- ErrorException
@Deprecated public ListHolder retainAll(ExecutionContext ctx, ListHolder list, SetHolder set) throws ErrorException
ctx
- list
- set
- ErrorException
public Decimal size(ExecutionContext ctx, ListHolder list) throws ErrorException
ctx
- list
- ErrorException
public Decimal size(ExecutionContext ctx, SetHolder set) throws ErrorException
ctx
- set
- ErrorException
@Deprecated public SetHolder toSet(ExecutionContext ctx, ListHolder list) throws ErrorException
ctx
- list
- ErrorException
@Deprecated public ListHolder toList(ExecutionContext ctx, SetHolder set) throws ErrorException
ctx
- set
- ErrorException
public Object getFirst(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
null
if the
collection is empty.ctx
- collection
- null
if the
collection is emptyErrorException
public Object getFirst(ExecutionContext ctx, CollectionHolder collection, ClosureHolder condition) throws ErrorException
ctx
- collection
- condition
- ErrorException
public Object getLast(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
null
if the
collection is empty.ctx
- collection
- null
if the
collection is emptyErrorException
public Object getLast(ExecutionContext ctx, CollectionHolder collection, ClosureHolder condition) throws ErrorException
ctx
- collection
- condition
- ErrorException
public Decimal findIndex(ExecutionContext ctx, CollectionHolder collection, ClosureHolder condition) throws ErrorException
ctx
- collection
- condition
- ErrorException
public Decimal findIndex(ExecutionContext ctx, CollectionHolder collection, Decimal fromIndex, ClosureHolder condition) throws ErrorException
fromIndex
.ctx
- collection
- fromIndex
- condition
- ErrorException
public Decimal findIndex(ExecutionContext ctx, CollectionHolder collection, Decimal fromIndex, Decimal toIndex, ClosureHolder condition) throws ErrorException
fromIndex
(inclusive) and finishing at toIndex
(exclusive).ctx
- collection
- fromIndex
- toIndex
- condition
- ErrorException
public Decimal findLastIndex(ExecutionContext ctx, CollectionHolder collection, ClosureHolder condition) throws ErrorException
ctx
- collection
- condition
- ErrorException
public Decimal findLastIndex(ExecutionContext ctx, CollectionHolder collection, Decimal toIndex, ClosureHolder condition) throws ErrorException
toIndex - 1
; returns -1 if no such element is found.ctx
- collection
- toIndex
- condition
- ErrorException
public Decimal findLastIndex(ExecutionContext ctx, CollectionHolder collection, Decimal fromIndex, Decimal toIndex, ClosureHolder condition) throws ErrorException
toIndex - 1
up to fromIndex
; returns -1 if no
such element is found.ctx
- collection
- fromIndex
- toIndex
- condition
- ErrorException
public ListHolder sort(ExecutionContext ctx, ListHolder list, Boolean ascending) throws ErrorException
ctx
- list
- ascending
- ErrorException
public SetHolder sort(ExecutionContext ctx, SetHolder set, Boolean ascending) throws ErrorException
ctx
- set
- ascending
- ErrorException
public CollectionHolder sort(ExecutionContext ctx, CollectionHolder collection, Boolean ascending) throws ErrorException
ctx
- collection
- ascending
- ErrorException
public Object max(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public Date maxDate(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public java.time.LocalDate maxLocalDate(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public Decimal maxDecimal(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public Decimal maxInteger(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public String maxString(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public Object min(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public Date minDate(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public java.time.LocalDate minLocalDate(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public Decimal minDecimal(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public Decimal minInteger(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public String minString(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ErrorException
public boolean notEmpty(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public boolean notEmpty(ExecutionContext ctx, MapHolder map) throws ErrorException
ctx
- map
- ErrorException
public SetHolder removeRange(ExecutionContext ctx, SetHolder set, Decimal fromIndex, Decimal toIndex) throws ErrorException
ctx
- set
- fromIndex
- toIndex
- ErrorException
public ListHolder removeRange(ExecutionContext ctx, ListHolder list, Decimal fromIndex, Decimal toIndex) throws ErrorException
ctx
- list
- fromIndex
- toIndex
- ErrorException
public CollectionHolder removeRange(ExecutionContext ctx, CollectionHolder collection, Decimal fromIndex, Decimal toIndex) throws ErrorException
ctx
- collection
- fromIndex
- toIndex
- ErrorException
public ListHolder compact(ExecutionContext ctx, ListHolder list) throws ErrorException
ctx
- list
- ErrorException
public SetHolder compact(ExecutionContext ctx, SetHolder set) throws ErrorException
ctx
- set
- ErrorException
public CollectionHolder compact(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public String join(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
", "
).ctx
- collection
- ErrorException
public String join(ExecutionContext ctx, CollectionHolder collection, String joinString) throws ErrorException
ctx
- collection
- joinString
- ErrorException
public String join(ExecutionContext ctx, CollectionHolder collection, String joinString, Boolean includeEmpty) throws ErrorException
ctx
- collection
- joinString
- includeEmpty
- ErrorException
public Decimal sum(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public Object foldWithIndex(ExecutionContext ctx, CollectionHolder collection, Object initialValue, ClosureHolder function) throws ErrorException
ctx
- collection
- initialValue
- function
- ErrorException
public ListHolder listUnion(ExecutionContext ctx, CollectionHolder... collections) throws ErrorException
ctx
- collections
- ErrorException
public SetHolder getDuplicates(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
ctx
- collection
- ErrorException
public boolean hasDuplicates(ExecutionContext ctx, CollectionHolder collection) throws ErrorException
true
if the collection contains duplicate elements,
false
otherwise.ctx
- collection
- true
if the collection contains duplicate elementsErrorException
@Deprecated public Type getItemType(ExecutionContext ctx, Type type)
TypeFunctions.getCollectionItemType(ExecutionContext, Type)
. This function is used in LSPS 3.1ctx
- type
- public ListHolder swap(ExecutionContext ctx, ListHolder list, Decimal index1, Decimal index2) throws ErrorException
ctx
- list
- index1
- index2
- ErrorException
public MapHolder groupBy(ExecutionContext ctx, CollectionHolder collection, ClosureHolder classifier) throws ErrorException
ctx
- collection
- classifier
- ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.