org.apache.commons.betwixt.expression
Class CollectionUpdater
java.lang.Object
org.apache.commons.betwixt.expression.CollectionUpdater
- All Implemented Interfaces:
- Updater
public class CollectionUpdater
- extends Object
- implements Updater
Updates a Collection by adding the new value to it.
- Since:
- 0.8
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionUpdater
public CollectionUpdater()
getInstance
public static CollectionUpdater getInstance()
- Gets singleton instance.
- Returns:
CollectionUpdater
, not null
update
public void update(Context context,
Object newValue)
- Updates collection contained by the context by adding the new value.
- Specified by:
update
in interface Updater
- Parameters:
context
- Context
, not nullnewValue
- value to be added, possibly null
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.