Collections.List

Description

Utility Functions for java.util.List

Functions

NameSignature and Synopsis
addvoid add ( Object collection ,int index ,Object element)
Inserts the specified element at the specified position in this collection.
addAllboolean addAll ( Object collection ,int index ,Object collection )
Inserts all of the elements in the specified collection into this collection at the specified position.
createArrayListObject createArrayList ( )
Create and returns instance of ArrayList.
createArrayListWithIdObject createArrayListWithId ( String listId )
Create and return instance of ArrayList for the given listID
createLinkedListObject createLinkedList ( )
Create and returns instance of LinkedList.
createLinkedListWithIdObject createLinkedListWithId ( String listId )
Create and return instance of LinkedList for the given listID
createListObject createList ( String className )
Creates user specified List implementation
createListWithIdObject createListWithId ( String className , String listId )
Creates user specified List implementation
deleteListObject deleteList ( String listId )
Deletes the instance of List for the given listId.
>This function can not be used if the collection is created with createList().
getObject get ( Object list ,int index )
Returns the element at the specified position in this list.
getListObject getList ( String listId )
Returns the instance of List for the given listId.
indexOfint indexOf ( Object list ,Object element )
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
lastIndexOfint lastIndexOf ( Object list ,Object element )
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
setObject set ( Object list ,int index ,Object element )
Replaces the element at the specified position in this list with the specified element.
subListObject subList ( Object list ,int fromIndex ,int toIndex )
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.