visad.data.in
Class OrCondition
java.lang.Object
visad.data.in.Condition
visad.data.in.OrCondition
public class OrCondition
- extends Condition
Provides support for alternative conditions for a VisAD data object.
Instances are immutable.
- Author:
- Steven R. Emmerson
Constructor Summary |
protected |
OrCondition(Condition conditionA,
Condition conditionB)
Constructs from two, alternative conditions for a VisAD data object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrCondition
protected OrCondition(Condition conditionA,
Condition conditionB)
- Constructs from two, alternative conditions for a VisAD data object.
VisAD data objects that satisfy either condition will satisfy this
condition.
- Parameters:
conditionA
- A condition for a VisAD data object.conditionB
- A condition for a VisAD data object.
orCondition
public static OrCondition orCondition(Condition conditionA,
Condition conditionB)
- Returns an instance of this class. Constructs from two, alternative
conditions for a VisAD data object. VisAD data objects that satisfy
either condition will satisfy this condition.
- Parameters:
conditionA
- A condition for a VisAD data object.conditionB
- A condition for a VisAD data object.
- Returns:
- An instance of this class.
isSatisfied
public boolean isSatisfied(DataImpl data)
- Indicates if a VisAD data object satisfies this condition.
- Specified by:
isSatisfied
in class Condition
- Parameters:
data
- A VisAD data object.
- Returns:
true
if and only if the VisAD data
object satisfies one of the conditions used
during this instance's construction.