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, toStringArraypublic AverageResult(Object newAverageStrategy)
public AverageResult(Object newAverageStrategy, boolean isOptimized)
public AverageResult(int newCount,
Object newSum)
public Object getResult()
public Object getValue()
CalcResultgetValue in interface CalcResultgetValue in class AbstractCalcResultpublic int getCount()
public Object getSum()
public boolean isCompatible(CalcResult targetResults)
isCompatible in interface CalcResultisCompatible in class AbstractCalcResulttargetResults - a second CalcResult object (target)public CalcResult merge(CalcResult resultsToAdd)
merge in interface CalcResultmerge in class AbstractCalcResultresultsToAdd - the CalcResult to merge the results withIllegalArgumentException - when the resultsToAdd are inappropriateCopyright © 1996–2019 Geotools. All rights reserved.