org.apache.commons.betwixt.expression
Class CollectionUpdater

java.lang.Object
  extended byorg.apache.commons.betwixt.expression.CollectionUpdater
All Implemented Interfaces:
Updater

public class CollectionUpdater
extends java.lang.Object
implements Updater

Updates a Collection by adding the new value to it.

Since:
0.8

Field Summary
private static CollectionUpdater INSTANCE
           
 
Constructor Summary
CollectionUpdater()
           
 
Method Summary
static CollectionUpdater getInstance()
          Gets singleton instance.
 void update(Context context, java.lang.Object newValue)
          Updates collection contained by the context by adding the new value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static CollectionUpdater INSTANCE
Constructor Detail

CollectionUpdater

public CollectionUpdater()
Method Detail

getInstance

public static CollectionUpdater getInstance()
Gets singleton instance.

Returns:
CollectionUpdater, not null

update

public void update(Context context,
                   java.lang.Object newValue)
Updates collection contained by the context by adding the new value.

Specified by:
update in interface Updater
Parameters:
context - Context, not null
newValue - value to be added, possibly null