Package nz.org.riskscape.engine.types.varule
package nz.org.riskscape.engine.types.varule
-
ClassDescriptionTwo
ContainingType
s of the same type (e.g.Rule allowGeometry
sub-types to be assigned toTypes.GEOMETRY
.Accepts null/nothing being passed to a Nullable target.Passes variance test on to the contained type of a nullable if the target, or the target and source, are nullable.Rule that passes when the source and target have the sameType
object.Represents the result of aTypeSet.testVariance(nz.org.riskscape.engine.types.Type,nz.org.riskscape.engine.types.Type)
Variance rules allow the type system to advise whether one type's values can be directly assigned to another without having to alter the receiving type (and consequently value).Will allow assignment if the source type is more specific than the target type.