Class RangeCondition
- java.lang.Object
-
- com.gooddata.sdk.model.executeafm.afm.filter.MeasureValueFilterCondition
-
- com.gooddata.sdk.model.executeafm.afm.filter.RangeCondition
-
- All Implemented Interfaces:
java.io.Serializable
public class RangeCondition extends MeasureValueFilterCondition implements java.io.Serializable
Condition ofMeasureValueFilterthat compares measure values against two values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RangeCondition(RangeConditionOperator operator, java.math.BigDecimal from, java.math.BigDecimal to)Creates a newRangeConditioninstance.RangeCondition(RangeConditionOperator operator, java.math.BigDecimal from, java.math.BigDecimal to, java.math.BigDecimal treatNullValuesAs)Creates a newRangeConditioninstance.RangeCondition(java.lang.String operator, java.math.BigDecimal from, java.math.BigDecimal to, java.math.BigDecimal treatNullValuesAs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.math.BigDecimalgetFrom()RangeConditionOperatorgetOperator()java.lang.StringgetStringOperator()java.math.BigDecimalgetTo()inthashCode()java.lang.StringtoString()-
Methods inherited from class com.gooddata.sdk.model.executeafm.afm.filter.MeasureValueFilterCondition
getTreatNullValuesAs
-
-
-
-
Constructor Detail
-
RangeCondition
public RangeCondition(java.lang.String operator, java.math.BigDecimal from, java.math.BigDecimal to, java.math.BigDecimal treatNullValuesAs)
-
RangeCondition
public RangeCondition(RangeConditionOperator operator, java.math.BigDecimal from, java.math.BigDecimal to)
Creates a newRangeConditioninstance.- Parameters:
operator- The operator of the range condition.from- The left boundary value.to- The right boundary value.
-
RangeCondition
public RangeCondition(RangeConditionOperator operator, java.math.BigDecimal from, java.math.BigDecimal to, java.math.BigDecimal treatNullValuesAs)
Creates a newRangeConditioninstance.- Parameters:
operator- The operator of the range condition.from- The left boundary value.to- The right boundary value.treatNullValuesAs- The number that will be used instead of compared values that are null.
-
-
Method Detail
-
getOperator
public RangeConditionOperator getOperator()
- Returns:
- range condition operator
-
getStringOperator
public java.lang.String getStringOperator()
-
getFrom
public java.math.BigDecimal getFrom()
- Returns:
- left boundary of the range
-
getTo
public java.math.BigDecimal getTo()
- Returns:
- right boundary of the range
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classMeasureValueFilterCondition
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMeasureValueFilterCondition
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-