|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CalcResult
Encapsulates the results from a FeatureCalc, and includes methods for obtaining and merging results.
FeatureCalc
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. |
java.lang.Object[] |
toArray()
Access getValue as an array |
double |
toDouble()
Access getValue as a double |
com.vividsolutions.jts.geom.Envelope |
toEnvelope()
Access getValue as an envelope |
float |
toFloat()
Access getValue as a float |
com.vividsolutions.jts.geom.Geometry |
toGeometry()
Access getValue as a geometry |
int |
toInt()
Access getValue as an int |
java.util.List |
toList()
Access getValue as a list |
long |
toLong()
Access getValue as a long |
java.util.Map |
toMap()
Access getValue as a map |
com.vividsolutions.jts.geom.Point |
toPoint()
Access getValue as a point |
java.util.Set |
toSet()
Access getValue as a set |
java.lang.String |
toString()
Access getValue as a string |
Method Detail |
---|
boolean isCompatible(CalcResult targetResults)
targetResults
- the second CalcResult Object
CalcResult merge(CalcResult resultsToAdd)
For example: merging two min functions would return the smaller of the two values; merging a count and a sum would return an average.
resultsToAdd
-
java.lang.Object getValue()
int toInt()
java.io.IOException
double toDouble()
java.lang.String toString()
toString
in class java.lang.Object
long toLong()
float toFloat()
com.vividsolutions.jts.geom.Geometry toGeometry()
com.vividsolutions.jts.geom.Envelope toEnvelope()
com.vividsolutions.jts.geom.Point toPoint()
java.util.Set toSet()
java.util.List toList()
java.lang.Object[] toArray()
java.util.Map toMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |