Interface EquivalenceRule

All Superinterfaces:
Identified
All Known Implementing Classes:
IntegerToFloatingRule, NullableRule, PartialStructRule, SingleGeomToMultiGeomRule, SingleValueStructRule, StructGeometryRule

public interface EquivalenceRule extends Identified

An equivalence rule allows type-safe coercion to be applied to the Riskscape Expression language in a pluggable way. An equivalence rule can inspect a proposed assignment and return a Coercer that can reliably alter the source value so that it can be safely assigned to the target.

NB not sure whether the resulting type must = target type, or be covariant with it (See Variance.COVARIANT)