public class

CollectionUpdater

extends Object
implements Updater
java.lang.Object
   ↳ org.apache.commons.betwixt.expression.CollectionUpdater

Class Overview

Updates a Collection by adding the new value to it.

Summary

Public Constructors
CollectionUpdater()
Public Methods
synchronized static CollectionUpdater getInstance()
Gets singleton instance.
void update(Context context, Object newValue)
Updates collection contained by the context by adding the new value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.commons.betwixt.expression.Updater

Public Constructors

public CollectionUpdater ()

Public Methods

public static synchronized CollectionUpdater getInstance ()

Gets singleton instance.

Returns
  • CollectionUpdater, not null

public void update (Context context, Object newValue)

Updates collection contained by the context by adding the new value.

Parameters
context Context, not null
newValue value to be added, possibly null