org.modelmapper
Class AbstractCondition<S,D>
java.lang.Object
org.modelmapper.AbstractCondition<S,D>
- Type Parameters:
S
- source typeD
- destination type
- All Implemented Interfaces:
- Condition<S,D>
public abstract class AbstractCondition<S,D>
- extends Object
- implements Condition<S,D>
Condition support class.
- Author:
- Jonathan Halterman
Method Summary |
Condition<S,D> |
and(Condition<S,D> condition)
Returns a new condition that applies if this AND the given condition apply. |
Condition<S,D> |
or(Condition<S,D> condition)
Returns a new condition that applies if this OR the given condition apply. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCondition
public AbstractCondition()
and
public Condition<S,D> and(Condition<S,D> condition)
- Returns a new condition that applies if
this
AND the given condition
apply.
- Returns:
- new condition
- Throws:
IllegalArgumentException
- if condition
is null
or
public Condition<S,D> or(Condition<S,D> condition)
- Returns a new condition that applies if
this
OR the given condition
apply.
- Returns:
- new condition
- Throws:
IllegalArgumentException
- if condition
is null
Copyright © 2011. All Rights Reserved.