public class ProxyCollections extends Proxies
Modifier and Type | Class and Description |
---|---|
static interface |
ProxyCollections.ProxyIterator
Marker interface for a proxied iterator.
|
static interface |
ProxyCollections.ProxyListIterator
Marker interface for a proxied list iterator.
|
Constructor and Description |
---|
ProxyCollections() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addAll(ProxyCollection coll,
Collection values)
Override for
Collection.addAll(java.util.Collection<? extends E>) . |
static boolean |
addAll(ProxyCollection coll,
int index,
Collection values)
Override for
List.addAll(int, Collection) . |
static boolean |
afterAdd(ProxyCollection coll,
Object value,
boolean added)
Call after invoking
Collection.add(Object) on super. |
static void |
afterAddElement(ProxyCollection coll,
Object value)
Call after invoking
Vector.addElement(Object) on super. |
static void |
afterAddLast(ProxyCollection coll,
Object value)
Call after invoking
LinkedList.addLast(Object) on super. |
static Iterator |
afterIterator(ProxyCollection coll,
Iterator itr)
Wrap given iterator in a proxy.
|
static ListIterator |
afterListIterator(ProxyCollection coll,
int idx,
ListIterator itr)
Wrap given iterator in a proxy.
|
static ListIterator |
afterListIterator(ProxyCollection coll,
ListIterator itr)
Wrap given iterator in a proxy.
|
static boolean |
afterOffer(ProxyCollection coll,
Object value,
boolean added)
Call after invoking
Queue#offer(Object) on super. |
static Object |
afterPoll(ProxyCollection coll,
Object removed)
Call after invoking
Queue#poll on super. |
static Object |
afterRemove(ProxyCollection coll,
int index,
Object removed)
Call after invoking
List.remove(int) on super. |
static Object |
afterRemove(ProxyCollection coll,
Object removed)
Call after invoking
Queue#remove on super. |
static boolean |
afterRemove(ProxyCollection coll,
Object o,
boolean removed)
Call after invoking
Collection.remove(java.lang.Object) on super. |
static boolean |
afterRemoveElement(ProxyCollection coll,
Object o,
boolean removed)
Call after invoking
Vector.removeElement(java.lang.Object) on super. |
static Object |
afterRemoveFirst(ProxyCollection coll,
Object removed)
Call after invoking
LinkedList.removeFirst() on super. |
static Object |
afterRemoveLast(ProxyCollection coll,
Object removed)
Call after invoking
LinkedList.removeLast() on super. |
static Object |
afterSet(ProxyCollection coll,
int index,
Object element,
Object replaced)
Call after invoking
List.set(int, E) on super. |
static Object |
afterSetElementAt(ProxyCollection coll,
Object element,
int index,
Object replaced)
Call after invoking
Vector.setElementAt(E, int) on super. |
static void |
beforeAdd(ProxyCollection coll,
int index,
Object value)
Call before invoking
List.add(int,Object) on super. |
static void |
beforeAdd(ProxyCollection coll,
Object value)
Call before invoking
Collection.add(Object) on super. |
static void |
beforeAddElement(ProxyCollection coll,
Object value)
Call before invoking
Vector.addElement(Object) on super. |
static void |
beforeAddFirst(ProxyCollection coll,
Object value)
Call before invoking
LinkedList.addFirst(Object) on super. |
static void |
beforeAddLast(ProxyCollection coll,
Object value)
Call before invoking
LinkedList.addLast(Object) on super. |
static void |
beforeClear(ProxyCollection coll)
Call before clearing collection.
|
static void |
beforeInsertElementAt(ProxyCollection coll,
Object value,
int index)
Call before invoking
Vector.insertElementAt(Object,int) on super. |
static void |
beforeOffer(ProxyCollection coll,
Object value)
Call before invoking
Queue#offer(Object) on super. |
static void |
beforePoll(ProxyCollection coll)
Call before invoking
Queue#poll on super. |
static void |
beforeRemove(ProxyCollection coll)
Call before invoking
Queue#remove on super. |
static void |
beforeRemove(ProxyCollection coll,
int index)
Call before invoking
List.remove(int) on super. |
static void |
beforeRemove(ProxyCollection coll,
Object o)
Call before invoking
Collection.remove(java.lang.Object) on super. |
static void |
beforeRemoveAllElements(ProxyCollection coll)
Call before clearing vector.
|
static void |
beforeRemoveElement(ProxyCollection coll,
Object o)
Call before invoking
Vector.removeElement(java.lang.Object) on super. |
static void |
beforeRemoveElementAt(ProxyCollection coll,
int index)
Call before invoking
Vector.removeElementAt(int) on super. |
static void |
beforeRemoveFirst(ProxyCollection coll)
Call before invoking
LinkedList.removeFirst() on super. |
static void |
beforeRemoveLast(ProxyCollection coll)
Call after invoking
LinkedList.removeLast() on super. |
static void |
beforeSet(ProxyCollection coll,
int index,
Object element)
Call before invoking
List.set(int, E) on super. |
static void |
beforeSetElementAt(ProxyCollection coll,
Object element,
int index)
Call before invoking
Vector.setElementAt(E, int) on super. |
static boolean |
isDelayed(ProxyCollection proxy) |
static void |
loadCollection(ProxyCollection proxy) |
static void |
loadCollection(ProxyCollection proxy,
boolean detaching) |
static boolean |
removeAll(ProxyCollection coll,
Collection<?> vals)
Override for
Collection.removeAll(java.util.Collection<?>) . |
static boolean |
retainAll(ProxyCollection coll,
Collection<?> vals)
Override for
Collection.retainAll(java.util.Collection<?>) . |
assertAllowedType, dirty, isOwner, removed, writeReplace
public static void beforeAdd(ProxyCollection coll, int index, Object value)
List.add(int,Object)
on super.public static void beforeInsertElementAt(ProxyCollection coll, Object value, int index)
Vector.insertElementAt(Object,int)
on super.public static void beforeAdd(ProxyCollection coll, Object value)
Collection.add(Object)
on super.public static boolean afterAdd(ProxyCollection coll, Object value, boolean added)
Collection.add(Object)
on super.added
- whether the object was addedadded
, for conveniencepublic static void beforeAddElement(ProxyCollection coll, Object value)
Vector.addElement(Object)
on super.public static void afterAddElement(ProxyCollection coll, Object value)
Vector.addElement(Object)
on super.public static void beforeAddFirst(ProxyCollection coll, Object value)
LinkedList.addFirst(Object)
on super.public static void beforeAddLast(ProxyCollection coll, Object value)
LinkedList.addLast(Object)
on super.public static void afterAddLast(ProxyCollection coll, Object value)
LinkedList.addLast(Object)
on super.public static void beforeOffer(ProxyCollection coll, Object value)
Queue#offer(Object)
on super.public static boolean afterOffer(ProxyCollection coll, Object value, boolean added)
Queue#offer(Object)
on super.added
- whether the object was addedadded
, for conveniencepublic static boolean addAll(ProxyCollection coll, int index, Collection values)
List.addAll(int, Collection)
.public static boolean addAll(ProxyCollection coll, Collection values)
Collection.addAll(java.util.Collection<? extends E>)
.public static void beforeClear(ProxyCollection coll)
public static void beforeRemoveAllElements(ProxyCollection coll)
public static Iterator afterIterator(ProxyCollection coll, Iterator itr)
public static ListIterator afterListIterator(ProxyCollection coll, int idx, ListIterator itr)
public static ListIterator afterListIterator(ProxyCollection coll, ListIterator itr)
public static void beforeRemove(ProxyCollection coll, int index)
List.remove(int)
on super.public static Object afterRemove(ProxyCollection coll, int index, Object removed)
List.remove(int)
on super.removed
- the removed objectpublic static void beforeRemoveElementAt(ProxyCollection coll, int index)
Vector.removeElementAt(int)
on super.public static void beforeRemove(ProxyCollection coll, Object o)
Collection.remove(java.lang.Object)
on super.public static boolean afterRemove(ProxyCollection coll, Object o, boolean removed)
Collection.remove(java.lang.Object)
on super.removed
- whether the object was removedpublic static void beforeRemoveElement(ProxyCollection coll, Object o)
Vector.removeElement(java.lang.Object)
on super.public static boolean afterRemoveElement(ProxyCollection coll, Object o, boolean removed)
Vector.removeElement(java.lang.Object)
on super.public static void beforeRemoveFirst(ProxyCollection coll)
LinkedList.removeFirst()
on super.public static Object afterRemoveFirst(ProxyCollection coll, Object removed)
LinkedList.removeFirst()
on super.public static void beforeRemoveLast(ProxyCollection coll)
LinkedList.removeLast()
on super.public static Object afterRemoveLast(ProxyCollection coll, Object removed)
LinkedList.removeLast()
on super.public static void beforeRemove(ProxyCollection coll)
Queue#remove
on super.public static Object afterRemove(ProxyCollection coll, Object removed)
Queue#remove
on super.public static void beforePoll(ProxyCollection coll)
Queue#poll
on super.public static Object afterPoll(ProxyCollection coll, Object removed)
Queue#poll
on super.public static boolean removeAll(ProxyCollection coll, Collection<?> vals)
Collection.removeAll(java.util.Collection<?>)
.public static boolean retainAll(ProxyCollection coll, Collection<?> vals)
Collection.retainAll(java.util.Collection<?>)
.public static void beforeSet(ProxyCollection coll, int index, Object element)
List.set(int, E)
on super.public static Object afterSet(ProxyCollection coll, int index, Object element, Object replaced)
List.set(int, E)
on super.replaced
- the replaced objectpublic static void beforeSetElementAt(ProxyCollection coll, Object element, int index)
Vector.setElementAt(E, int)
on super.public static Object afterSetElementAt(ProxyCollection coll, Object element, int index, Object replaced)
Vector.setElementAt(E, int)
on super.public static void loadCollection(ProxyCollection proxy)
public static void loadCollection(ProxyCollection proxy, boolean detaching)
public static boolean isDelayed(ProxyCollection proxy)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.