A lazy loaded collection.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
initialize() Initializes the collection if it hasn't already been initialized. |
|
boolean |
isDirty() Check whether the collection has been modified. |
|
boolean |
isInitialized() Check whether the collection has been loaded. |
|
void |
markDirty() Mark the collection as dirty. |
|
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#contains(java.lang.Object), java.util.Collection#isEmpty(), java.util.Collection#size(), java.util.Collection#toArray(), java.util.Collection#toArray([Ljava.lang.Object;), java.util.Collection#addAll(java.util.Collection), java.util.Collection#iterator(), java.util.Collection#containsAll(java.util.Collection), java.util.Collection#removeAll(java.util.Collection), java.util.Collection#retainAll(java.util.Collection) |
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.