Package org.modelmapper
Class Conditions
java.lang.Object
org.modelmapper.Conditions
Condition utilities and implementations. This class can be extended by a PropertyMap to
provide convenient access to methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S,D> Condition<S, D> Returns a new condition that applies ifcondition1ANDcondition2apply.static Condition<?,?> Returns a condition that applies when the mapping source is notnull.static Condition<?,?> isNull()Returns a condition that applies when the mapping source isnull.static Condition<?,?> Returns a condition that applies when the mapping source is of the typetype.static <S,D> Condition<S, D> Returns a condition that does NOT apply when the givenconditionapplies.static <S,D> Condition<S, D> Returns a new condition that applies ifcondition1ORcondition2apply.
-
Constructor Details
-
Conditions
public Conditions()
-
-
Method Details
-
and
Returns a new condition that applies ifcondition1ANDcondition2apply.- Returns:
- new condition
- Throws:
IllegalArgumentException- ifcondition1orcondition2is null
-
isNotNull
Returns a condition that applies when the mapping source is notnull. -
isNull
Returns a condition that applies when the mapping source isnull. -
isType
Returns a condition that applies when the mapping source is of the typetype. -
not
Returns a condition that does NOT apply when the givenconditionapplies.- Throws:
IllegalArgumentException- ifconditionis null
-
or
Returns a new condition that applies ifcondition1ORcondition2apply.- Returns:
- new condition
- Throws:
IllegalArgumentException- ifcondition1orcondition2is null
-