public class PropertyMapManager
extends java.lang.Object
PropertyMap
's and merging change notifications to
optimize performance.Constructor and Description |
---|
PropertyMapManager() |
Modifier and Type | Method and Description |
---|---|
void |
beginBatch()
Begins a batch operation.
|
void |
endBatch()
Ends a batch operation.
|
static PropertyMapManager |
getInstance()
Returns the only instance of this class.
|
static void |
runBatch(java.lang.Runnable runnable)
Executes a method inside a
beginBatch() - endBatch() pair. |
public static PropertyMapManager getInstance()
public static void runBatch(java.lang.Runnable runnable)
beginBatch()
- endBatch()
pair. See beginBatch()
for
more information. It's safe to call other batch methods from inside Runnable.run()
.runnable
- the runnable to invokepublic void beginBatch()
endBatch()
is called. Each call to this method MUST be followed by a call to endBatch()
.
This method can be called an unlimited number of times without calling endBatch()
in between, but each
call must have a corresponding call to endBatch()
. Only when exiting from the
outermost endBatch()
the changes be propagated to the listeners.public void endBatch()
beginBatch()
for more information.