Class CollectionFunctions
java.lang.Object
org.apache.juneau.commons.svl.functions.CollectionFunctions
Small collection helpers:
list and take.
list(a, b, ...) builds a list from its arguments, which makes it possible to produce the rows for
table(header, rows), for example rows.![list(a, b)]. take(list, n) returns the first n
elements, which together with size expresses "first N, then 'and M more'" without a slice syntax.
Both functions are side-effect free. Neither can grow a collection beyond its inputs: list is bounded by the
number of arguments written in the template and take returns a prefix of its argument.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class#{list(a, b, ...)}— a list of the arguments;list()is empty.static class#{take(list, n)}— the firstnelements oflist(all of them if it is shorter). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<? extends VarFunction>[]All function classes in this category. -
Method Summary
-
Field Details
-
ALL
All function classes in this category.
-