public class MinMaxContext extends Object implements Context<MinMaxContext>
| Modifier and Type | Field and Description |
|---|---|
protected Numbers.MixedTypedNumber |
_max |
protected Numbers.MixedTypedNumber |
_min |
static ContextFactory<MinMaxContext> |
FACTORY |
| Constructor and Description |
|---|
MinMaxContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object item)
Add an item into the aggregation.
|
Number |
getMax()
Retrieve MAX.
|
Number |
getMin()
Retrieve MIN.
|
void |
merge(MinMaxContext ctx)
Merge from another context of the same type.
|
protected Numbers.MixedTypedNumber _max
protected Numbers.MixedTypedNumber _min
public static final ContextFactory<MinMaxContext> FACTORY
public void add(Object item)
Contextadd in interface Context<MinMaxContext>public void merge(MinMaxContext ctx)
Contextmerge in interface Context<MinMaxContext>public Number getMax()
public Number getMin()
Copyright © 2023. All rights reserved.