Class NullableTargetRule
java.lang.Object
nz.org.riskscape.engine.types.varule.NullableTargetRule
- All Implemented Interfaces:
Identified
,VarianceRule
Passes variance test on to the contained type of a nullable if the target, or the target and source, are nullable. If the source is nullable and the target isn't, then the types are invariant.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
Methods inherited from interface nz.org.riskscape.engine.types.varule.VarianceRule
getId
-
Constructor Details
-
NullableTargetRule
public NullableTargetRule()
-
-
Method Details
-
test
- Specified by:
test
in interfaceVarianceRule
-