public class NumericHaving extends Having
Having.DefaultHavingType
Constructor and Description |
---|
NumericHaving(HavingType type,
String aggregation,
Number value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAggregation() |
HavingType |
getType() |
Number |
getValue() |
NumericHaving |
withAggregation(String aggregation)
Get a new instance of this having with the given aggregation.
|
NumericHaving |
withType(HavingType type)
Get a new instance of this having with the given type.
|
NumericHaving |
withValue(Number value)
Get a new instance of this having with the given value.
|
public NumericHaving(HavingType type, String aggregation, Number value)
type
- The type of having operation requested (i.e. AND, GREATER_THAN, etc).aggregation
- The name of the aggregation being performed.value
- The value to be compared against.public HavingType getType()
public String getAggregation()
public Number getValue()
public NumericHaving withType(HavingType type)
type
- Type of the new having.public NumericHaving withAggregation(String aggregation)
aggregation
- Aggregation of the new having.public NumericHaving withValue(Number value)
value
- Value of the new having.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.