Class SameRule

java.lang.Object
nz.org.riskscape.engine.types.varule.SameRule
All Implemented Interfaces:
Identified, VarianceRule

public class SameRule extends Object implements VarianceRule

Rule that passes when the source and target have the same Type object.

This rule can safely be evaluated first and then no other rules need to worry about detecting this same (object) match.