Java List Interface Java Actions
Overview
This module provides wrappers for the functions available in the List interface excluding those with an existing equivalent in OOB Mendix and those that return Java Iterators.
Documentation
Description
This module wraps the Java List interface functions that are not available in the OOB Mendix list methods excluding those that return iterators. https://docs.oracle.com/javase/8/docs/api/java/util/List.html
Typical usage scenario
Use this module to access or change a list at a specific index which is possible but is rather complicated in default Mendix.
Features and limitations
Wraps the following List Methods:
E remove(int index)
Removes the element at the specified position in this list (optional operation).
E set(int index, E element)
Replaces the element at the specified position in this list with the specified element (optional operation).
E get(int index)
Returns the element at the specified position in this list.
List subList(int fromIndex, int toIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
int hashCode()
Returns the hash code value for this list.
void add(int index, E element)
Inserts the specified element at the specified position in this list (optional operation).
boolean addAll(int index, Collection c)
Inserts all of the elements in the specified collection into this list at the specified position (optional operation).
int indexOf(Object o)
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
int lastIndexOf(Object o)
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
Dependencies
Mendix 10.4 or above required to install.
Installation
Download from the Mendix Marketplace.
You can contact me at samuel.egan@mendix.com if you have questions.