Package org.geotools.feature.visitor
Class MaxVisitor.MaxResult
- Object
- 
- AbstractCalcResult
- 
- MaxResult
 
 
- 
- All Implemented Interfaces:
- CalcResult
 - Enclosing class:
- MaxVisitor
 
 public static class MaxVisitor.MaxResult extends AbstractCalcResult 
- 
- 
Field Summary- 
Fields inherited from interface CalcResultNULL_RESULT
 
- 
 - 
Constructor SummaryConstructors Constructor Description MaxResult(Comparable newMaxValue)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetValue()Actual answerbooleanisCompatible(CalcResult targetResults)Returns true if the target results is a compatible type with the current results, with compatible meaning that the two results may be merged.CalcResultmerge(CalcResult resultsToAdd)Returns the merged results of two CalcResult.- 
Methods inherited from class AbstractCalcResulttoArray, toDouble, toEnvelope, toFloat, toGeometry, toInt, toList, toLong, toMap, toPoint, toSet, toString, toStringArray
 
- 
 
- 
- 
- 
Constructor Detail- 
MaxResultpublic MaxResult(Comparable newMaxValue) 
 
- 
 - 
Method Detail- 
getValuepublic Object getValue() Description copied from interface:CalcResultActual answer- Specified by:
- getValuein interface- CalcResult
- Overrides:
- getValuein class- AbstractCalcResult
- Returns:
- the calculation result as a generic object
 
 - 
isCompatiblepublic boolean isCompatible(CalcResult targetResults) Description copied from interface:CalcResultReturns true if the target results is a compatible type with the current results, with compatible meaning that the two results may be merged.- Specified by:
- isCompatiblein interface- CalcResult
- Overrides:
- isCompatiblein class- AbstractCalcResult
- Parameters:
- targetResults- the second CalcResult Object
- Returns:
- true if the targetResults can be merged with the current results
 
 - 
mergepublic CalcResult merge(CalcResult resultsToAdd) Description copied from interface:CalcResultReturns the merged results of two CalcResult. The way in which the results are merged is dependent on the type of the results added. A new instance is created containing the merged results.For example: merging two min functions would return the smaller of the two values; merging a count and a sum would return an average. - Specified by:
- mergein interface- CalcResult
- Overrides:
- mergein class- AbstractCalcResult
- Returns:
- the merged results
 
 
- 
 
-