public interface ListStore extends CollectionStore
Modifier and Type | Method and Description |
---|---|
void |
add(ObjectProvider op,
Object element,
int index,
int size)
Method to add an element to the List.
|
boolean |
addAll(ObjectProvider op,
Collection c,
int index,
int size)
Method to add a collection of elements to the List.
|
Object |
get(ObjectProvider op,
int index)
Method to retrieve an element from a position in the List.
|
int |
indexOf(ObjectProvider op,
Object element)
Method to return the position of an element in the List.
|
int |
lastIndexOf(ObjectProvider op,
Object element)
Method to return the last position of an element in the List.
|
ListIterator |
listIterator(ObjectProvider op)
Accessor for a list iterator for the List.
|
Object |
remove(ObjectProvider op,
int index,
int size)
Method to remove an element from the List.
|
Object |
set(ObjectProvider op,
int index,
Object element,
boolean allowDependentField)
Method to update an element at a position in the List.
|
List |
subList(ObjectProvider op,
int from,
int to)
Accessor for a sublist of elements between from and to indices.
|
add, addAll, clear, contains, hasOrderMapping, iterator, remove, removeAll, size, update, updateEmbeddedElement
getOwnerMemberMetaData, getStoreManager
void add(ObjectProvider op, Object element, int index, int size)
op
- ObjectProvider for the owner of the List.element
- Element to addindex
- Position to add the element.size
- Current size of list (if known). -1 if not knownboolean addAll(ObjectProvider op, Collection c, int index, int size)
op
- ObjectProvider for the owner of the List.c
- Collection of elements to addindex
- Position to add the elements.size
- Current size of the list (if known). -1 if not knownObject remove(ObjectProvider op, int index, int size)
op
- ObjectProvider for the owner of the List.index
- Position to remove the element.size
- Current size of the list (if known). -1 if not knownObject get(ObjectProvider op, int index)
op
- ObjectProvider for the owner of the List.index
- Position of the element.Object set(ObjectProvider op, int index, Object element, boolean allowDependentField)
op
- ObjectProvider for the owner of the List.index
- Position of the element.element
- The element valueallowDependentField
- Whether to enable dependent field during this operationList subList(ObjectProvider op, int from, int to)
op
- ObjectProvider for the owner of the List.from
- Start position (inclusive)to
- End position (exclusive)int indexOf(ObjectProvider op, Object element)
op
- ObjectProvider for the owner of the List.element
- The element valueint lastIndexOf(ObjectProvider op, Object element)
op
- ObjectProvider for the owner of the List.element
- The element valueListIterator listIterator(ObjectProvider op)
op
- ObjectProvider for the owner of the List.Copyright © 2015. All rights reserved.