com.bstek.dorado.util.proxy
public abstract class ListProxySupport<E> extends CollectionProxySupport<E> implements java.util.List<E>
List
代理的抽象支持类。Constructor and Description |
---|
ListProxySupport(java.util.Collection<E> target) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E element) |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
E |
get(int index) |
int |
indexOf(java.lang.Object o) |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<E> |
listIterator() |
java.util.ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
E |
set(int index,
E element) |
protected void |
setTarget(java.util.Collection<E> target)
设置被代理的
Collection 对象。 |
java.util.List<E> |
subList(int fromIndex,
int toIndex) |
add, clear, contains, containsAll, equals, getTarget, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, writeReplace
public ListProxySupport(java.util.Collection<E> target)
target
- 被代理List
对象。protected void setTarget(java.util.Collection<E> target)
CollectionProxySupport
Collection
对象。setTarget
in class CollectionProxySupport<E>
public boolean addAll(java.util.Collection<? extends E> c)
addAll
in interface java.util.Collection<E>
addAll
in interface java.util.List<E>
addAll
in class CollectionProxySupport<E>
public boolean addAll(int index, java.util.Collection<? extends E> c)
addAll
in interface java.util.List<E>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<E>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<E>
public java.util.ListIterator<E> listIterator()
listIterator
in interface java.util.List<E>
public java.util.ListIterator<E> listIterator(int index)
listIterator
in interface java.util.List<E>
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.