public class RepeatContextCounter extends Object
Constructor and Description |
---|
RepeatContextCounter(RepeatContext context,
String countKey)
Convenience constructor with useParent=false.
|
RepeatContextCounter(RepeatContext context,
String countKey,
boolean useParent)
Construct a new
RepeatContextCounter . |
public RepeatContextCounter(RepeatContext context, String countKey)
context
- the current context.countKey
- the key to use to store the counter in the context.public RepeatContextCounter(RepeatContext context, String countKey, boolean useParent)
RepeatContextCounter
.context
- the current context.countKey
- the key to use to store the counter in the context.useParent
- true if the counter is to be shared between siblings.
The state will be stored in the parent of the context (if it exists)
instead of the context itself.Copyright © 2014 Pivotal. All rights reserved.