|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.feature.visitor.AbstractCalcResult
org.geotools.feature.visitor.AverageVisitor.AverageResult
| Constructor Summary | |
AverageVisitor.AverageResult(int newCount,
java.lang.Object newSum)
|
|
AverageVisitor.AverageResult(java.lang.Object newAverageStrategy)
|
|
AverageVisitor.AverageResult(java.lang.Object newAverageStrategy,
boolean isOptimized)
|
|
| Method Summary | |
int |
getCount()
The count used to calculate the average |
java.lang.Object |
getResult()
|
java.lang.Object |
getSum()
The sum used to calculate the average |
java.lang.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. |
| Methods inherited from class org.geotools.feature.visitor.AbstractCalcResult |
toArray, toDouble, toEnvelope, toFloat, toGeometry, toInt, toList, toLong, toMap, toPoint, toSet, toString, toStringArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AverageVisitor.AverageResult(java.lang.Object newAverageStrategy)
public AverageVisitor.AverageResult(java.lang.Object newAverageStrategy,
boolean isOptimized)
public AverageVisitor.AverageResult(int newCount,
java.lang.Object newSum)
| Method Detail |
public java.lang.Object getResult()
public java.lang.Object getValue()
CalcResult
getValue in interface CalcResultgetValue in class AbstractCalcResultpublic int getCount()
public java.lang.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 with
java.lang.IllegalArgumentException - when the resultsToAdd are
inappropriate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||