/** * If the current field is a usable proxy, return it; else return null. */ private Proxy checkProxy() { if (!(objval instanceof Proxy)) return null; Proxy proxy = (Proxy) objval; if (proxy.getOwner() == null || Proxies.isOwner(proxy, _sm, field)) return proxy; return null; }
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 boolean add(Object o) { Proxies.assertAllowedType(o, _elementType); Proxies.dirty(this, false); _ct.added(o); return true; }
protected Object writeReplace() throws ObjectStreamException { if (isDelayLoad()) { load(); } return Proxies.writeReplace(this, true); }
@Override public synchronized void setSize(int paramInt) { if (_directAccess) { super.setSize(paramInt); return; } if (isDelayLoad()) { load(); } Proxies.dirty(this, true); super.setSize(paramInt); }
public boolean add(Object o) { Proxies.assertAllowedType(o, _elementType); Proxies.dirty(this, false); _ct.added(o); return true; }
protected Object writeReplace() throws ObjectStreamException { if (isDelayLoad()) { load(); } return Proxies.writeReplace(this, true); }
@Override public boolean removeFirstOccurrence(Object paramObject) { if (_directAccess) { return super.removeFirstOccurrence(paramObject); } if (isDelayLoad()) { load(); } Proxies.dirty(this, true); return super.removeFirstOccurrence(paramObject); }
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 boolean add(Object o) { Proxies.assertAllowedType(o, _elementType); Proxies.dirty(this, false); _ct.added(o); return true; }
/** * If the current field is a usable proxy and it should be a proxy, return it; else return null. * * This method will skim out Calendar instances that were proxied before we knew if they need to be proxied. */ private Proxy checkProxy(FieldMetaData fmd) { if (!(objval instanceof Proxy)) return null; Proxy proxy = (Proxy) objval; if (proxy.getOwner() == null || Proxies.isOwner(proxy, _sm, field)) { if (fmd.getProxyType().isAssignableFrom(proxy.getClass()) || (fmd.isLRS() && (objval instanceof LRSProxy))) { return proxy; } } return null; }
protected Object writeReplace() throws ObjectStreamException { if (isDelayLoad()) { load(); } return Proxies.writeReplace(this, true); }
@Override public boolean removeLastOccurrence(Object paramObject) { if (_directAccess) { return super.removeLastOccurrence(paramObject); } if (isDelayLoad()) { load(); } Proxies.dirty(this, true); return super.removeLastOccurrence(paramObject); }
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 boolean add(Object o) { Proxies.assertAllowedType(o, _elementType); Proxies.dirty(this, false); _ct.added(o); return true; }
/** * If the current field is a usable proxy and it should be a proxy, return it; else return null. * * This method will skim out Calendar instances that were proxied before we knew if they need to be proxied. */ private Proxy checkProxy(FieldMetaData fmd) { if (!(objval instanceof Proxy)) return null; Proxy proxy = (Proxy) objval; if (proxy.getOwner() == null || Proxies.isOwner(proxy, _sm, field)) { if (fmd.getProxyType().isAssignableFrom(proxy.getClass()) || (fmd.isLRS() && (objval instanceof LRSProxy))) { return proxy; } } return null; }