|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.RestrictedCollections.RestrictedCollection
com.tangosol.util.RestrictedCollections.RestrictedList
public static class RestrictedCollections.RestrictedList
A restricted List that requires its contents to be of a specified class.
| Field Summary |
|---|
| Fields inherited from class com.tangosol.util.RestrictedCollections.RestrictedCollection |
|---|
m_clz, m_col |
| Constructor Summary | |
|---|---|
RestrictedCollections.RestrictedList(java.util.List list, java.lang.Class clz)Constructor. |
|
| Method Summary | |
|---|---|
void |
add(int index, java.lang.Object element)Inserts the specified element at the specified position in this list (optional operation). |
boolean |
addAll(int index, java.util.Collection col)Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
java.lang.Object |
get(int index)Returns the element at the specified position in this list. |
int |
indexOf(java.lang.Object o)Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element. |
int |
lastIndexOf(java.lang.Object o)Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element. |
java.util.ListIterator |
listIterator()Returns a list iterator of the elements in this list (in proper sequence). |
java.util.ListIterator |
listIterator(int index)Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. |
java.lang.Object |
remove(int index)Removes the element at the specified position in this list (optional operation). |
java.lang.Object |
set(int index, java.lang.Object element)Replaces the element at the specified position in this list with the specified element (optional operation). |
java.util.List |
subList(int fromIndex, int toIndex)Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
| Methods inherited from class com.tangosol.util.RestrictedCollections.RestrictedCollection |
|---|
add, addAll, checkObject, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from interface java.util.List |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
|---|
public RestrictedCollections.RestrictedList(java.util.List list,
java.lang.Class clz)
list - the underlying Listclz - the class of objects that may be stored in the List| Method Detail |
|---|
public java.lang.Object get(int index)
get in interface java.util.Listindex - index of element to return
public java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.Listindex - index of element to replace.element - element to be stored at the specified position.java.lang.ClassCastException - if the class of the specified element prevents it from being added to this list
public void add(int index,
java.lang.Object element)
add in interface java.util.Listindex - index at which the specified element is to be insertedelement - element to be insertedjava.lang.ClassCastException - if the class of the specified element prevents it from being added to this list
public boolean addAll(int index,
java.util.Collection col)
addAll in interface java.util.Listindex - index at which to insert first element from the specified collectioncol - elements to be inserted into this listjava.lang.ClassCastException - if the class of one of elements of the specified collection prevents it from being added to this listpublic java.lang.Object remove(int index)
remove in interface java.util.Listindex - the index of the element to removedpublic int indexOf(java.lang.Object o)
indexOf in interface java.util.Listo - element to search forpublic int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.Listo - element to search forpublic java.util.ListIterator listIterator()
listIterator in interface java.util.Listpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.Listindex - index of first element to be returned from the list iterator (by a call to the next method)
public java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.ListfromIndex - low endpoint (inclusive) of the subListtoIndex - high endpoint (exclusive) of the subList
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||