public interface ListCodecTemplate
Modifier and Type | Method and Description |
---|---|
Object |
add(String name,
Data value)
Appends the specified element to the end of this list (optional operation).
|
Object |
addAll(String name,
List<Data> valueList)
Appends all of the elements in the specified collection to the end of this list, in the order that they are
returned by the specified collection's iterator (optional operation).
|
Object |
addAllWithIndex(String name,
int index,
List<Data> valueList)
Inserts all of the elements in the specified collection into this list at the specified position (optional operation).
|
Object |
addListener(String name,
boolean includeValue,
boolean localOnly)
Adds an item listener for this collection.
|
void |
addWithIndex(String name,
int index,
Data value)
Inserts the specified element at the specified position in this list (optional operation).
|
void |
clear(String name)
Removes all of the elements from this list (optional operation).
|
Object |
compareAndRemoveAll(String name,
List<Data> values)
Removes from this list all of its elements that are contained in the specified collection (optional operation).
|
Object |
compareAndRetainAll(String name,
List<Data> values)
Retains only the elements in this list that are contained in the specified collection (optional operation).
|
Object |
contains(String name,
Data value)
Returns true if this list contains the specified element.
|
Object |
containsAll(String name,
List<Data> values)
Returns true if this list contains all of the elements of the specified collection.
|
Object |
get(String name,
int index)
Returns the element at the specified position in this list
|
Object |
getAll(String name)
Return the all elements of this collection
|
Object |
indexOf(String name,
Data value)
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not
contain the element.
|
Object |
isEmpty(String name)
Returns true if this list contains no elements
|
Object |
iterator(String name)
Returns an iterator over the elements in this list in proper sequence.
|
Object |
lastIndexOf(String name,
Data value)
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not
contain the element.
|
Object |
listIterator(String name,
int index)
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position
in the list.
|
Object |
remove(String name,
Data value)
Removes the first occurrence of the specified element from this list, if it is present (optional operation).
|
Object |
removeListener(String name,
String registrationId)
Removes the specified item listener.
|
Object |
removeWithIndex(String name,
int index)
Removes the element at the specified position in this list (optional operation).
|
Object |
set(String name,
int index,
Data value)
The element previously at the specified position
|
Object |
size(String name)
Returns the number of elements in this list.
|
Object |
sub(String name,
int from,
int to)
Returns a view of the portion of this list between the specified from, inclusive, and to, exclusive.(If from and
to are equal, the returned list is empty.) The returned list is backed by this list, so non-structural changes in
the returned list are reflected in this list, and vice-versa.
|
Object size(String name)
name
- Name of ListObject contains(String name, Data value)
name
- Name of the Listvalue
- Element whose presence in this list is to be testedObject containsAll(String name, List<Data> values)
name
- Name of the Listvalues
- Collection to be checked for containment in this listObject add(String name, Data value)
name
- Name of the Listvalue
- Element to be appended to this listObject remove(String name, Data value)
name
- Name of the Listvalue
- Element to be removed from this list, if presentObject addAll(String name, List<Data> valueList)
name
- Name of the ListvalueList
- Collection containing elements to be added to this listObject compareAndRemoveAll(String name, List<Data> values)
name
- Name of the Listvalues
- The list of values to compare for removal.Object compareAndRetainAll(String name, List<Data> values)
name
- Name of the Listvalues
- The list of values to compare for retaining.void clear(String name)
name
- Name of the ListObject getAll(String name)
name
- Name of the ListObject addListener(String name, boolean includeValue, boolean localOnly)
name
- Name of the ListincludeValue
- Set to true if you want the event to contain the value.localOnly
- if true fires events that originated from this node only, otherwise fires all eventsObject removeListener(String name, String registrationId)
name
- Name of the ListregistrationId
- The id of the listener which was provided during registration.Object isEmpty(String name)
name
- Name of the ListObject addAllWithIndex(String name, int index, List<Data> valueList)
name
- Name of the Listindex
- index at which to insert the first element from the specified collection.valueList
- The list of value to insert into the list.Object get(String name, int index)
name
- Name of the Listindex
- Index of the element to returnObject set(String name, int index, Data value)
name
- Name of the Listindex
- Index of the element to replacevalue
- Element to be stored at the specified positionvoid addWithIndex(String name, int index, Data value)
name
- Name of the Listindex
- index at which the specified element is to be insertedvalue
- Value to be inserted.Object removeWithIndex(String name, int index)
name
- Name of the Listindex
- The index of the element to be removedObject lastIndexOf(String name, Data value)
name
- Name of the Listvalue
- Element to search forObject indexOf(String name, Data value)
name
- Name of the Listvalue
- Element to search forObject sub(String name, int from, int to)
name
- Name of the Listfrom
- Low endpoint (inclusive) of the subListto
- High endpoint (exclusive) of the subListObject iterator(String name)
name
- Name of the ListObject listIterator(String name, int index)
name
- Name of the Listindex
- index of the first element to be returned from the list iterator nextCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.