Skip navigation links
com.tangosol.util
Class WrapperCollections.AbstractWrapperList
java.lang.Object
com.tangosol.util.WrapperCollections.AbstractWrapperCollection
com.tangosol.util.WrapperCollections.AbstractWrapperList
- All Implemented Interfaces:
- java.lang.Iterable, java.util.Collection, java.util.List
- Direct Known Subclasses:
- ImmutableArrayList.ListView, ImmutableMultiList.ListView
- Enclosing class:
- WrapperCollections
-
public abstract static class WrapperCollections.AbstractWrapperList
- extends WrapperCollections.AbstractWrapperCollection
- implements java.util.List
List implementation which delegates all calls to another List.
Method Summary |
void |
add(int index, java.lang.Object element)
|
boolean |
addAll(int index, java.util.Collection c)
|
java.lang.Object |
get(int index)
|
protected java.util.List |
getDelegate()
Return the List to which all operations should be delegated to. |
int |
indexOf(java.lang.Object o)
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
|
java.lang.Object |
set(int index, java.lang.Object element)
|
java.util.List |
subList(int fromIndex, int toIndex)
|
Methods inherited from class com.tangosol.util.WrapperCollections.AbstractWrapperCollection |
add, addAll, 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 |
WrapperCollections.AbstractWrapperList
protected WrapperCollections.AbstractWrapperList(java.util.List list)
- Create an AbstractWrapperList which delegates to the specified List.
- Parameters:
list
- the List to delegate all calls to
getDelegate
protected java.util.List getDelegate()
- Return the List to which all operations should be delegated to.
-
- Overrides:
getDelegate
in class WrapperCollections.AbstractWrapperCollection
-
- Returns:
- the wrapped List
addAll
public boolean addAll(int index,
java.util.Collection c)
-
- Specified by:
addAll
in interface java.util.List
get
public java.lang.Object get(int index)
-
- Specified by:
get
in interface java.util.List
set
public java.lang.Object set(int index,
java.lang.Object element)
-
- Specified by:
set
in interface java.util.List
add
public void add(int index,
java.lang.Object element)
-
- Specified by:
add
in interface java.util.List
remove
public java.lang.Object remove(int index)
-
- Specified by:
remove
in interface java.util.List
indexOf
public int indexOf(java.lang.Object o)
-
- Specified by:
indexOf
in interface java.util.List
lastIndexOf
public int lastIndexOf(java.lang.Object o)
-
- Specified by:
lastIndexOf
in interface java.util.List
listIterator
public java.util.ListIterator listIterator()
-
- Specified by:
listIterator
in interface java.util.List
listIterator
public java.util.ListIterator listIterator(int index)
-
- Specified by:
listIterator
in interface java.util.List
subList
public java.util.List subList(int fromIndex,
int toIndex)
-
- Specified by:
subList
in interface java.util.List
Skip navigation links
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.