/** * Call before invoking {@link List#add(int,Object)} on super. */ public static void beforeAdd(ProxyCollection coll, int index, Object value){ assertAllowedType(value, coll.getElementType()); dirty(coll, true); }
/** * Call before invoking {@link List#set} on super. */ public static void beforeSet(ProxyCollection coll, int index, Object element) { assertAllowedType(element, coll.getElementType()); dirty(coll, true); }
/** * Call before invoking {@link List#set} on super. */ public static void beforeSet(ProxyCollection coll, int index, Object element) { assertAllowedType(element, coll.getElementType()); dirty(coll, true); }
/** * Call before invoking {@link List#add(int,Object)} on super. */ public static void beforeAdd(ProxyCollection coll, int index, Object value){ assertAllowedType(value, coll.getElementType()); dirty(coll, true); }
/** * Call before invoking {@link List#set} on super. */ public static void beforeSet(ProxyCollection coll, int index, Object element) { assertAllowedType(element, coll.getElementType()); dirty(coll, true); }
/** * Call before invoking {@link List#set} on super. */ public static void beforeSet(ProxyCollection coll, int index, Object element) { assertAllowedType(element, coll.getElementType()); dirty(coll, true); }
/** * Call before invoking {@link Collection#add(Object)} on super. */ public static void beforeAdd(ProxyCollection coll, Object value) { assertAllowedType(value, coll.getElementType()); dirty(coll, false); }
/** * Call before invoking {@link List#add(int,Object)} on super. */ public static void beforeAdd(ProxyCollection coll, int index, Object value){ assertAllowedType(value, coll.getElementType()); dirty(coll, true); }
/** * Call before invoking {@link List#set} on super. */ public static void beforeSet(ProxyCollection coll, int index, Object element) { assertAllowedType(element, coll.getElementType()); dirty(coll, true); }
/** * Call before invoking {@link Collection#add(Object)} on super. */ public static void beforeAdd(ProxyCollection coll, Object value) { assertAllowedType(value, coll.getElementType()); // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#add(Object)} on super. */ public static void beforeAdd(ProxyCollection coll, Object value) { assertAllowedType(value, coll.getElementType()); // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#add(Object)} on super. */ public static void beforeAdd(ProxyCollection coll, Object value) { assertAllowedType(value, coll.getElementType()); // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#add(Object)} on super. */ public static void beforeAdd(ProxyCollection coll, Object value) { assertAllowedType(value, coll.getElementType()); // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
public void set(Object o) { assertAllowedType(o, coll.getElementType()); dirty(coll, false); itr.set(o); if (coll.getChangeTracker() != null) coll.getChangeTracker().stopTracking(); Proxies.removed(coll, _last, false); _last = o; }
public void set(Object o) { assertAllowedType(o, coll.getElementType()); dirty(coll, false); itr.set(o); if (coll.getChangeTracker() != null) coll.getChangeTracker().stopTracking(); Proxies.removed(coll, _last, false); _last = o; }
/** * Call before invoking {@link List#add(int,Object)} on super. */ public static void beforeAdd(ProxyCollection coll, int index, Object value){ assertAllowedType(value, coll.getElementType()); if (index == coll.size()) // optimize for adding to the end beforeAdd(coll, value); else dirty(coll, true); }
public void set(Object o) { assertAllowedType(o, coll.getElementType()); dirty(coll, false); itr.set(o); if (coll.getChangeTracker() != null) coll.getChangeTracker().stopTracking(); Proxies.removed(coll, _last, false); _last = o; }
public void set(Object o) { assertAllowedType(o, coll.getElementType()); dirty(coll, false); itr.set(o); if (coll.getChangeTracker() != null) coll.getChangeTracker().stopTracking(); Proxies.removed(coll, _last, false); _last = o; }
public void set(Object o) { assertAllowedType(o, coll.getElementType()); dirty(coll, false); itr.set(o); if (coll.getChangeTracker() != null) coll.getChangeTracker().stopTracking(); Proxies.removed(coll, _last, false); _last = o; }
public void add(Object o) { assertAllowedType(o, coll.getElementType()); dirty(coll, false); itr.add(o); if (coll.getChangeTracker() != null) { if (hasNext()) coll.getChangeTracker().stopTracking(); else ((CollectionChangeTracker) coll.getChangeTracker()). added(o); } _last = o; }