public class AbstractCalcResult extends Object implements CalcResult
NULL_RESULT| Constructor and Description |
|---|
AbstractCalcResult() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Object[] |
toArray()
Access getValue as an array
|
double |
toDouble()
Access getValue as a double
|
Envelope |
toEnvelope()
Access getValue as an envelope
|
float |
toFloat()
Access getValue as a float
|
Geometry |
toGeometry()
Access getValue as a geometry
|
int |
toInt()
Access getValue as an int
|
List |
toList()
Access getValue as a list
|
long |
toLong()
Access getValue as a long
|
Map |
toMap()
Access getValue as a map
|
Point |
toPoint()
Access getValue as a point
|
Set |
toSet()
Access getValue as a set
|
String |
toString()
Access getValue as a string
|
String[] |
toStringArray() |
public boolean isCompatible(CalcResult targetResults)
CalcResultisCompatible in interface CalcResulttargetResults - the second CalcResult Objectpublic 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 CalcResultpublic Object getValue()
CalcResultgetValue in interface CalcResultpublic int toInt()
CalcResulttoInt in interface CalcResultpublic double toDouble()
CalcResulttoDouble in interface CalcResultpublic long toLong()
CalcResulttoLong in interface CalcResultpublic float toFloat()
CalcResulttoFloat in interface CalcResultpublic Geometry toGeometry()
CalcResulttoGeometry in interface CalcResultpublic Envelope toEnvelope()
CalcResulttoEnvelope in interface CalcResultpublic Point toPoint()
CalcResulttoPoint in interface CalcResultpublic Set toSet()
CalcResulttoSet in interface CalcResultpublic List toList()
CalcResulttoList in interface CalcResultpublic Object[] toArray()
CalcResulttoArray in interface CalcResultpublic String[] toStringArray()
public Map toMap()
CalcResulttoMap in interface CalcResultpublic String toString()
CalcResulttoString in interface CalcResulttoString in class ObjectCopyright © 1996–2019 Geotools. All rights reserved.