org.modelmapper
Class AbstractCondition<S,D>

java.lang.Object
  extended by org.modelmapper.AbstractCondition<S,D>
Type Parameters:
S - source type
D - 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

Constructor Summary
AbstractCondition()
           
 
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
 
Methods inherited from interface org.modelmapper.Condition
applies
 

Constructor Detail

AbstractCondition

public AbstractCondition()
Method Detail

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.