public class DynamicGroup extends DesiredRateExpressionImpl<List<Object>>
DesiredRateExpression
can be
added dynamically. The exceptions eventually generated by those
expressions can be obtained through lastExceptions()
.Constructor and Description |
---|
DynamicGroup()
Creates a new group.
|
Modifier and Type | Method and Description |
---|---|
DynamicGroup |
add(DesiredRateExpression<?> expression)
Adds the expression at the end.
|
DynamicGroup |
clear()
Removes all the expressions currently in the group.
|
List<Exception> |
lastExceptions()
Returns the last exception for each expression in the group (if present).
|
DynamicGroup |
remove(int index)
Removes the expression at the given location.
|
DynamicGroup |
set(int index,
DesiredRateExpression<?> expression)
Changes the expression to the given location.
|
int |
size()
Returns the number of expressions in the group.
|
as, fillReadRecipe, getDesiredRateExpressionImpl, getFunction, getName
and, getDesiredRateExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, getDesiredRateExpressions
public List<Exception> lastExceptions()
public DynamicGroup clear()
public int size()
public DynamicGroup add(DesiredRateExpression<?> expression)
expression
- the expression to be addedpublic DynamicGroup remove(int index)
index
- the position to removepublic DynamicGroup set(int index, DesiredRateExpression<?> expression)
index
- the position to removeexpression
- the new expressionCopyright © 2010–2015. All rights reserved.