org.geotools.feature.visitor
Class MinVisitor.MinResult

java.lang.Object
  extended byorg.geotools.feature.visitor.AbstractCalcResult
      extended byorg.geotools.feature.visitor.MinVisitor.MinResult
All Implemented Interfaces:
CalcResult
Enclosing class:
MinVisitor

public static class MinVisitor.MinResult
extends AbstractCalcResult


Constructor Summary
MinVisitor.MinResult(java.lang.Comparable newMinValue)
           
 
Method Summary
 java.lang.Object getValue()
          Actual answer
 boolean isCompatible(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.
 CalcResult merge(CalcResult resultsToAdd)
          Returns the merged results of two CalcResult.
 
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

MinVisitor.MinResult

public MinVisitor.MinResult(java.lang.Comparable newMinValue)
Method Detail

getValue

public java.lang.Object getValue()
Description copied from interface: CalcResult
Actual answer

Specified by:
getValue in interface CalcResult
Overrides:
getValue in class AbstractCalcResult

isCompatible

public boolean isCompatible(CalcResult targetResults)
Description copied from interface: CalcResult
Returns 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:
isCompatible in interface CalcResult
Overrides:
isCompatible in class AbstractCalcResult

merge

public CalcResult merge(CalcResult resultsToAdd)
Description copied from interface: CalcResult
Returns 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:
merge in interface CalcResult
Overrides:
merge in class AbstractCalcResult


Copyright © GeoTools. All Rights Reserved.