public PersistentList(List<E> collection, boolean clone) { if (collection != null) init((clone ? new ArrayList<E>(collection) : collection), null, false); }
@Override public void doInitialize(List<E> list, boolean empty) { init(empty ? new ArrayList<E>() : list, null, false); }
@Override public void doInitialize(List<E> list, boolean empty) { init(empty ? new ArrayList<E>() : list, null, false); }
public PersistentList(List<E> collection, boolean clone) { if (collection != null) init((clone ? new ArrayList<E>(collection) : collection), null, false); }
@Override public void doInitialize() { init(new ArrayList<E>(), null, false); }
public PersistentList(List<E> collection, boolean clone) { if (collection != null) init((clone ? new ArrayList<E>(collection) : collection), null, false); }
@SuppressWarnings("unchecked") @Override protected void updateFromSnapshot(ObjectInput in, PersistentCollectionSnapshot snapshot) { if (snapshot.isInitialized()) init(new ArrayList<E>((Collection<? extends E>)snapshot.getElementsAsCollection()), snapshot.getDetachedState(), snapshot.isDirty()); else init(null, snapshot.getDetachedState(), false); }
@SuppressWarnings("unchecked") @Override protected void updateFromSnapshot(ObjectInput in, PersistentCollectionSnapshot snapshot) { if (snapshot.isInitialized()) init(new ArrayList<E>((Collection<? extends E>)snapshot.getElementsAsCollection()), snapshot.getDetachedState(), snapshot.isDirty()); else init(null, snapshot.getDetachedState(), false); }
@SuppressWarnings("unchecked") @Override protected void updateFromSnapshot(ObjectInput in, PersistentCollectionSnapshot snapshot) { if (snapshot.isInitialized()) init(new ArrayList<E>((Collection<? extends E>)snapshot.getElementsAsCollection()), snapshot.getDetachedState(), snapshot.isDirty()); else init(null, snapshot.getDetachedState(), false); }
public PersistentList<E> clone(boolean uninitialize) { PersistentList<E> list = new PersistentList<E>(); if (wasInitialized() && !uninitialize) list.init(getCollection(), null, isDirty()); return list; } }
public PersistentList<E> clone(boolean uninitialize) { PersistentList<E> list = new PersistentList<E>(); if (wasInitialized() && !uninitialize) list.init(getCollection(), null, isDirty()); return list; } }
public PersistentList<E> clone(boolean uninitialize) { PersistentList<E> list = new PersistentList<E>(); if (wasInitialized() && !uninitialize) list.init(getCollection(), null, isDirty()); return list; } }