|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.feature.visitor.AbstractCalcResult
An abstract implementation for CalcResults. Each subclass should implement its own getValue(), merge(), and constructor methods.
| Constructor Summary | |
AbstractCalcResult()
|
|
| 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 |
java.lang.String[] |
toStringArray()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractCalcResult()
| Method Detail |
public boolean isCompatible(CalcResult targetResults)
CalcResult
isCompatible in interface CalcResulttargetResults - the second CalcResult Object
public CalcResult merge(CalcResult resultsToAdd)
CalcResultFor example: merging two min functions would return the smaller of the two values; merging a count and a sum would return an average.
merge in interface CalcResultresultsToAdd -
public java.lang.Object getValue()
CalcResult
getValue in interface CalcResultpublic int toInt()
CalcResult
toInt in interface CalcResultpublic double toDouble()
CalcResult
toDouble in interface CalcResultpublic long toLong()
CalcResult
toLong in interface CalcResultpublic float toFloat()
CalcResult
toFloat in interface CalcResultpublic com.vividsolutions.jts.geom.Geometry toGeometry()
CalcResult
toGeometry in interface CalcResultpublic com.vividsolutions.jts.geom.Envelope toEnvelope()
CalcResult
toEnvelope in interface CalcResultpublic com.vividsolutions.jts.geom.Point toPoint()
CalcResult
toPoint in interface CalcResultpublic java.util.Set toSet()
CalcResult
toSet in interface CalcResultpublic java.util.List toList()
CalcResult
toList in interface CalcResultpublic java.lang.Object[] toArray()
CalcResult
toArray in interface CalcResultpublic java.lang.String[] toStringArray()
public java.util.Map toMap()
CalcResult
toMap in interface CalcResultpublic java.lang.String toString()
CalcResult
toString in interface CalcResult
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||