Class DomainValidator
java.lang.Object
com.aquima.interactions.expressions.semantics.DomainValidator
Utility class that can be used to check if domains have an intersection.
- Since:
- 6.3
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsValue
(Domain specifiedDomain, IValue derivedValue) This method returns a boolean indicating if the value is present in the domain.static boolean
hasIntersection
(Type left, Type right) This method returns a boolean indicating if there is an intersection between the domains of the left and right type.
-
Method Details
-
hasIntersection
This method returns a boolean indicating if there is an intersection between the domains of the left and right type.- Parameters:
left
- The first type that should be compared.right
- The second type that should be compared.- Returns:
- a boolean indicating if there is an intersection between the two domain types.
-
containsValue
This method returns a boolean indicating if the value is present in the domain.- Parameters:
specifiedDomain
- The domain that should be checked if it contains the value.derivedValue
- The value that should be checked against the domain.- Returns:
- boolean indicating if the value is present in the domain.
-