@Override public void doInitialize() { init(new HashSet<E>(), null, false); }
public PersistentSet(Set<E> collection, boolean clone) { if (collection instanceof SortedSet) throw new IllegalArgumentException("Should not be a SortedSet: " + collection); if (collection != null) init(clone ? new HashSet<E>(collection) : collection, null, false); }
@Override public void doInitialize(Set<E> set, boolean empty) { init(empty ? new HashSet<E>() : set, null, false); }
public PersistentSet(Set<E> collection, boolean clone) { if (collection instanceof SortedSet) throw new IllegalArgumentException("Should not be a SortedSet: " + collection); if (collection != null) init(clone ? new HashSet<E>(collection) : collection, null, false); }
@Override public void doInitialize(Set<E> set, boolean empty) { init(empty ? new HashSet<E>() : set, null, false); }
public PersistentSet(Set<E> collection, boolean clone) { if (collection instanceof SortedSet) throw new IllegalArgumentException("Should not be a SortedSet: " + collection); if (collection != null) init(clone ? new HashSet<E>(collection) : collection, null, false); }
@SuppressWarnings("unchecked") @Override protected void updateFromSnapshot(ObjectInput in, PersistentCollectionSnapshot snapshot) { if (snapshot.isInitialized()) init(new HashSet<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 HashSet<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 HashSet<E>((Collection<? extends E>)snapshot.getElementsAsCollection()), snapshot.getDetachedState(), snapshot.isDirty()); else init(null, snapshot.getDetachedState(), false); }
public PersistentSet<E> clone(boolean uninitialize) { PersistentSet<E> set = new PersistentSet<E>(); if (wasInitialized() && !uninitialize) set.init(getCollection(), null, isDirty()); return set; } }
public PersistentSet<E> clone(boolean uninitialize) { PersistentSet<E> set = new PersistentSet<E>(); if (wasInitialized() && !uninitialize) set.init(getCollection(), null, isDirty()); return set; } }
public PersistentSet<E> clone(boolean uninitialize) { PersistentSet<E> set = new PersistentSet<E>(); if (wasInitialized() && !uninitialize) set.init(getCollection(), null, isDirty()); return set; } }