Package nz.org.riskscape.engine.coverage
Class SampledValue
java.lang.Object
nz.org.riskscape.engine.coverage.SampledValue
Data class used for holding the results of a sampling operation (Non-generic version of Pair).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructWildcard version of the struct this class produces, useful for ArgumentList -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.locationtech.jts.geom.GeometryThe geometry that is associated with the value, might be a whole region feature, might be a pixel where the value was centred.getValue()inthashCode()static SampledValueStatic constructorstatic StructReturn a version of the struct this class produces with a specific sampled value typetoPair()For compatibility with tests, return as a pairtoString()Convert this sampled value in to a tuple.
-
Field Details
-
STRUCT_ANYTHING
Wildcard version of the struct this class produces, useful for ArgumentList
-
-
Method Details
-
struct
Return a version of the struct this class produces with a specific sampled value type
-
of
Static constructor
-
withValue
- Returns:
- a new
SampledValuewith the value replaced
-
toPair
For compatibility with tests, return as a pair
-
toTuple
Convert this sampled value in to a tuple. The struct should be something produced via the
struct(Type)method, usually during realization -
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()The geometry that is associated with the value, might be a whole region feature, might be a pixel where the value was centred.
-
getValue
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-