public Object[] toArray() { if (!checkInitializedRead()) return null; return getCollection().toArray(); }
public boolean add(E e) { checkInitializedWrite(); if (getCollection().add(e)) { dirty(); return true; } return false; }
@Override protected PersistentCollectionSnapshot createSnapshot(Object io, boolean forReading) { PersistentCollectionSnapshotFactory factory = PersistentCollectionSnapshotFactory.newInstance(io); if (forReading || !wasInitialized()) return factory.newPersistentCollectionSnapshot(getDetachedState()); return factory.newPersistentCollectionSnapshot(true, getDetachedState(), isDirty(), getCollection()); } }
@Override protected PersistentCollectionSnapshot createSnapshot(Object io, boolean forReading) { PersistentCollectionSnapshotFactory factory = PersistentCollectionSnapshotFactory.newInstance(io); if (forReading || !wasInitialized()) return factory.newPersistentCollectionSnapshot(getDetachedState()); return factory.newPersistentCollectionSnapshot(true, getDetachedState(), isDirty(), getCollection()); } }
public boolean removeAll(Collection<?> c) { checkInitializedWrite(); if (getCollection().removeAll(c)) { dirty(); return true; } return false; }
public int size() { if (!checkInitializedRead()) return 0; return getCollection().size(); }
@Override protected PersistentCollectionSnapshot createSnapshot(Object io, boolean forReading) { PersistentCollectionSnapshotFactory factory = PersistentCollectionSnapshotFactory.newInstance(io); if (forReading || !wasInitialized()) return factory.newPersistentCollectionSnapshot(getDetachedState()); return factory.newPersistentCollectionSnapshot(true, getDetachedState(), isDirty(), getCollection()); } }
public boolean retainAll(Collection<?> c) { checkInitializedWrite(); if (getCollection().retainAll(c)) { dirty(); return true; } return false; }
public boolean isEmpty() { if (!checkInitializedRead()) return true; return getCollection().isEmpty(); }
public boolean addAll(Collection<? extends E> c) { checkInitializedWrite(); if (getCollection().addAll(c)) { dirty(); return true; } return false; }
public <T> T[] toArray(T[] a) { if (!checkInitializedRead()) return null; return getCollection().toArray(a); }
public boolean retainAll(Collection<?> c) { checkInitializedWrite(); if (getCollection().retainAll(c)) { dirty(); return true; } return false; }
public boolean isEmpty() { if (!checkInitializedRead()) return true; return getCollection().isEmpty(); }
public boolean remove(Object o) { checkInitializedWrite(); if (getCollection().remove(o)) { dirty(); return true; } return false; }
public boolean contains(Object o) { if (!checkInitializedRead()) return false; return getCollection().contains(o); }
public boolean add(E e) { checkInitializedWrite(); if (getCollection().add(e)) { dirty(); return true; } return false; }
public boolean contains(Object o) { if (!checkInitializedRead()) return false; return getCollection().contains(o); }
public boolean add(E e) { checkInitializedWrite(); if (getCollection().add(e)) { dirty(); return true; } return false; }
public int size() { if (!checkInitializedRead()) return 0; return getCollection().size(); }
public boolean retainAll(Collection<?> c) { checkInitializedWrite(); if (getCollection().retainAll(c)) { dirty(); return true; } return false; }