@java.lang.SuppressWarnings("rawtypes") public interface PersistentCollection extends java.util.Collection, DirtyCheckableCollection
A lazy loaded collection.
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
initialize() Initializes the collection if it hasn't already been initialized. |
|
public boolean |
isDirty() Check whether the collection has been modified. |
|
public boolean |
isInitialized() Check whether the collection has been loaded. |
|
public void |
markDirty() Mark the collection as dirty. |
|
public void |
resetDirty() Mark the collection as no longer dirty. |
Methods inherited from class | Name |
---|---|
interface java.util.Collection |
java.util.Collection#add(java.lang.Object), java.util.Collection#remove(java.lang.Object), java.util.Collection#equals(java.lang.Object), java.util.Collection#hashCode(), java.util.Collection#clear(), java.util.Collection#isEmpty(), java.util.Collection#size(), java.util.Collection#toArray([Ljava.lang.Object;), java.util.Collection#toArray(java.util.function.IntFunction), java.util.Collection#toArray(), java.util.Collection#iterator(), java.util.Collection#stream(), java.util.Collection#contains(java.lang.Object), java.util.Collection#spliterator(), java.util.Collection#addAll(java.util.Collection), java.util.Collection#removeIf(java.util.function.Predicate), java.util.Collection#removeAll(java.util.Collection), java.util.Collection#retainAll(java.util.Collection), java.util.Collection#containsAll(java.util.Collection), java.util.Collection#parallelStream(), java.util.Collection#forEach(java.util.function.Consumer) |
interface DirtyCheckableCollection |
getOriginalSize, hasChanged, hasChangedSize, hasGrown, hasShrunk |
Initializes the collection if it hasn't already been initialized.
Check whether the collection has been modified.
true
if the collection is initialized and has been changed since initializationCheck whether the collection has been loaded.
true
if the collection has been initializedMark the collection as dirty.
Mark the collection as no longer dirty.