All Downloads are FREE. Search and download functionalities are using the official Maven repository.

functions.array-functions.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>

<functions>
  <function>
    <prefix>array</prefix>
    <name>asList</name>
    <description><![CDATA[<p>Returns a fixed-size list backed by the specified array. (Changes to the returned list "write through" to the array.) This method acts as bridge between array-based and collection-based APIs, in combination with Collection.toArray(). The returned list is serializable and implements RandomAccess.

      <p>This method also provides a convenient way to create a fixed-size list initialized to contain several elements:

      <p>
      Example:
      <table>
        <tr>
          <td> EL Add Variable </td>
          <td> list </td>
          <td> $[array:asList('a','b','c')] </td>
        </tr>
        <tr>
          <td> EL Should Be Equal </td>
          <td> $['a'] </td>
          <td> $[list[0]] </td>
        </tr>
      </table>]]>
    </description>
    <function-class>java.util.Arrays</function-class>
    <function-signature>java.util.List asList(java.lang.Object[])</function-signature>
  </function>
</functions>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy