public static class AverageVisitor.AverageResult extends AbstractCalcResult
NULL_RESULT
Constructor and Description |
---|
AverageResult(int newCount,
Object newSum) |
AverageResult(Object newAverageStrategy) |
AverageResult(Object newAverageStrategy,
boolean isOptimized) |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
The count used to calculate the average
|
Object |
getResult() |
Object |
getSum()
The sum used to calculate the average
|
Object |
getValue()
Actual answer
|
boolean |
isCompatible(CalcResult targetResults)
Determines if the target CalcResult object can be merged with this CalcResult object
|
CalcResult |
merge(CalcResult resultsToAdd)
Merges the contents of a CalcResult Object with another CalcResult Object.
|
toArray, toDouble, toEnvelope, toFloat, toGeometry, toInt, toList, toLong, toMap, toPoint, toSet, toString, toStringArray
public AverageResult(Object newAverageStrategy)
public AverageResult(Object newAverageStrategy, boolean isOptimized)
public AverageResult(int newCount, Object newSum)
public Object getResult()
public Object getValue()
CalcResult
getValue
in interface CalcResult
getValue
in class AbstractCalcResult
public int getCount()
public Object getSum()
public boolean isCompatible(CalcResult targetResults)
isCompatible
in interface CalcResult
isCompatible
in class AbstractCalcResult
targetResults
- a second CalcResult object (target)public CalcResult merge(CalcResult resultsToAdd)
merge
in interface CalcResult
merge
in class AbstractCalcResult
resultsToAdd
- the CalcResult to merge the results withIllegalArgumentException
- when the resultsToAdd are inappropriateCopyright © 1996–2019 Geotools. All rights reserved.