Class ELCollections

java.lang.Object
io.micronaut.el.runtime.ELCollections

@Internal public final class ELCollections extends Object
The construction of the collection objects described in the section 2.2 of the Jakarta Expression Language specification.

This class is invoked by the expressions generated at compilation time, it is not part of the public API of the module.

Since:
1.0
Author:
Denis Stepanov
  • Method Details

    • list

      public static List<Object> list(Object... elements)
      Parameters:
      elements - The elements
      Returns:
      The constructed list
    • set

      public static Set<Object> set(Object... elements)
      Parameters:
      elements - The elements
      Returns:
      The constructed set
    • map

      public static Map<Object,Object> map(Object... keysAndValues)
      Parameters:
      keysAndValues - The keys and the values, in the order they appear in the expression
      Returns:
      The constructed map