de.cau.cs.kieler.core.ui.util
Class CompoundCondition

java.lang.Object
  extended by de.cau.cs.kieler.core.ui.util.CompoundCondition
All Implemented Interfaces:
ICondition

public class CompoundCondition
extends Object
implements ICondition

A condition that is composed of a set of other conditions.

Rating proposed yellow
(2010-01-26) msp

Constructor Summary
CompoundCondition(Collection<ICondition> theconditions)
          Creates a compound condition from a collection of conditions.
CompoundCondition(ICondition[] theconditions)
          Creates a compound condition from an array of conditions.
 
Method Summary
 boolean evaluate(Object object)
          Evaluate this condition on the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundCondition

public CompoundCondition(Collection<ICondition> theconditions)
Creates a compound condition from a collection of conditions.

Parameters:
theconditions - the conditions

CompoundCondition

public CompoundCondition(ICondition[] theconditions)
Creates a compound condition from an array of conditions.

Parameters:
theconditions - the conditions
Method Detail

evaluate

public boolean evaluate(Object object)
Evaluate this condition on the given object.

Specified by:
evaluate in interface ICondition
Parameters:
object - a target object
Returns:
true if the condition is met for the object